Make WordPress Core

Changeset 58877


Ignore:
Timestamp:
08/10/2024 04:58:16 AM (5 weeks ago)
Author:
dmsnell
Message:

HTML API: Remove completed TODO comments.

This patch removes TODO comments indicating the need to verify certain behaviors and algorithms. Those verifications have taken place and the comments are no longer needed.

Developed in https://github.com/wordpress/wordpress-develop/pull/7174
Discussed in https://core.trac.wordpress.org/ticket/61646

Follow-up to [58867], [58870].

Props jonsurrell.
See #64646.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/html-api/class-wp-html-processor.php

    r58871 r58877  
    776776     * closing as soon as the processor advances to the next token.
    777777     *
    778      * @todo Review the self-closing logic when no node is present, ensure it
    779      *       matches the expectations in `step()`.
    780      *
    781778     * @since 6.6.0
    782779     *
     
    33183315            case '-TFOOT':
    33193316            case '-THEAD':
    3320                 /*
    3321                  * @todo This needs to check if the element in scope is an HTML element, meaning that
    3322                  *       when SVG and MathML support is added, this needs to differentiate between an
    3323                  *       HTML element of the given name, such as `<center>`, and a foreign element of
    3324                  *       the same given name.
    3325                  */
    33263317                if ( ! $this->state->stack_of_open_elements->has_element_in_table_scope( $tag_name ) ) {
    33273318                    // Parse error: ignore the token.
     
    34543445            case '-TFOOT':
    34553446            case '-THEAD':
    3456                 /*
    3457                  * @todo This needs to check if the element in scope is an HTML element, meaning that
    3458                  *       when SVG and MathML support is added, this needs to differentiate between an
    3459                  *       HTML element of the given name, such as `<center>`, and a foreign element of
    3460                  *       the same given name.
    3461                  */
    34623447                if ( ! $this->state->stack_of_open_elements->has_element_in_table_scope( $tag_name ) ) {
    34633448                    // Parse error: ignore the token.
     
    35223507            case '-TD':
    35233508            case '-TH':
    3524                 /*
    3525                  * @todo This needs to check if the element in scope is an HTML element, meaning that
    3526                  *       when SVG and MathML support is added, this needs to differentiate between an
    3527                  *       HTML element of the given name, such as `<center>`, and a foreign element of
    3528                  *       the same given name.
    3529                  */
    35303509                if ( ! $this->state->stack_of_open_elements->has_element_in_table_scope( $tag_name ) ) {
    35313510                    // Parse error: ignore the token.
     
    35913570            case '-THEAD':
    35923571            case '-TR':
    3593                 /*
    3594                  * @todo This needs to check if the element in scope is an HTML element, meaning that
    3595                  *       when SVG and MathML support is added, this needs to differentiate between an
    3596                  *       HTML element of the given name, such as `<center>`, and a foreign element of
    3597                  *       the same given name.
    3598                  */
    35993572                if ( ! $this->state->stack_of_open_elements->has_element_in_table_scope( $tag_name ) ) {
    36003573                    // Parse error: ignore the token.
Note: See TracChangeset for help on using the changeset viewer.