Make WordPress Core

Changeset 57209


Ignore:
Timestamp:
12/20/2023 12:34:34 PM (14 months ago)
Author:
Bernhard Reiter
Message:

HTML API: Apply linting changes to @TODO comments.

Lowercase @TODO comments introduced by [57186], and remove spurious colons after them.

Props dmsnell, TobiasBg, mukesh27, sergeybiryukov, jonsurrell.
Fixes #60060.

Location:
trunk/src/wp-includes/html-api
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/html-api/class-wp-html-active-formatting-elements.php

    r56363 r57209  
    106106         * > (the order of the attributes does not matter).
    107107         *
    108          * @TODO: Implement the "Noah's Ark clause" to only add up to three of any given kind of formatting elements to the stack.
     108         * @todo Implement the "Noah's Ark clause" to only add up to three of any given kind of formatting elements to the stack.
    109109         */
    110110        // > Add element to the list of active formatting elements.
  • trunk/src/wp-includes/html-api/class-wp-html-processor.php

    r57186 r57209  
    253253        $p->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_BODY;
    254254
    255         // @TODO: Create "fake" bookmarks for non-existent but implied nodes.
     255        // @todo Create "fake" bookmarks for non-existent but implied nodes.
    256256        $p->bookmarks['root-node']    = new WP_HTML_Span( 0, 0 );
    257257        $p->bookmarks['context-node'] = new WP_HTML_Span( 0, 0 );
     
    507507             * on the stack is a void element, it must be closed.
    508508             *
    509              * @TODO: Once self-closing foreign elements and BGSOUND are supported,
     509             * @todo Once self-closing foreign elements and BGSOUND are supported,
    510510             *        they must also be implicitly closed here too. BGSOUND is
    511511             *        special since it's only self-closing if the self-closing flag
     
    609609            case '+BUTTON':
    610610                if ( $this->state->stack_of_open_elements->has_element_in_scope( 'BUTTON' ) ) {
    611                     // @TODO: Indicate a parse error once it's possible. This error does not impact the logic here.
     611                    // @todo Indicate a parse error once it's possible. This error does not impact the logic here.
    612612                    $this->generate_implied_end_tags();
    613613                    $this->state->stack_of_open_elements->pop_until( 'BUTTON' );
     
    686686            case '-SUMMARY':
    687687                if ( ! $this->state->stack_of_open_elements->has_element_in_scope( $tag_name ) ) {
    688                     // @TODO: Report parse error.
     688                    // @todo Report parse error.
    689689                    // Ignore the token.
    690690                    return $this->step();
     
    693693                $this->generate_implied_end_tags();
    694694                if ( $this->state->stack_of_open_elements->current_node()->node_name !== $tag_name ) {
    695                     // @TODO: Record parse error: this error doesn't impact parsing.
     695                    // @todo Record parse error: this error doesn't impact parsing.
    696696                }
    697697                $this->state->stack_of_open_elements->pop_until( $tag_name );
     
    718718                    )
    719719                ) {
    720                     // @TODO: Indicate a parse error once it's possible.
     720                    // @todo Indicate a parse error once it's possible.
    721721                    $this->state->stack_of_open_elements->pop();
    722722                }
     
    738738                     * This is a parse error; ignore the token.
    739739                     *
    740                      * @TODO: Indicate a parse error once it's possible.
     740                     * @todo Indicate a parse error once it's possible.
    741741                     */
    742742                    return $this->step();
     
    746746
    747747                if ( $this->state->stack_of_open_elements->current_node()->node_name !== $tag_name ) {
    748                     // @TODO: Record parse error: this error doesn't impact parsing.
     748                    // @todo Record parse error: this error doesn't impact parsing.
    749749                }
    750750
Note: See TracChangeset for help on using the changeset viewer.