Skip to content

Commit 35d348a

Browse files
committed
Improve documentation
1 parent fd257b7 commit 35d348a

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

‎src/wp-includes/html-api/class-wp-html-tag-processor.php‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2159,14 +2159,11 @@ private function parse_next_tag(): bool {
21592159
}
21602160

21612161
/**
2162-
* Parses attributes.
2162+
* Parses attributes exhaustively in a tag.
21632163
*
2164-
* This method must parse all attributes in a tag up to its closing `>`. After calling this
2165-
* function, the parser is guaranteed to be positioned at the closing `>` of the tag or at the
2166-
* end of the document if the tag is incomplete.
2167-
*
2168-
* This function will set the parser state to `STATE_INCOMPLETE_INPUT` if the tag is incomplete
2169-
* and the parser reaches the end of the document before finding a closing `>`.
2164+
* After calling this function, the processor will either be at the tag-closing `>` or the
2165+
* parser state will be set to `self::STATE_INCOMPLETE_INPUT` if the end of the document is
2166+
* reached before attribute parsing finishes.
21702167
*
21712168
* @since 7.3.0
21722169
* @ignore

0 commit comments

Comments
 (0)