Skip to content

Commit f6d3a64

Browse files
committed
Finish and clarify comment.
1 parent f2c715d commit f6d3a64

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/wp-includes/html-api/class-wp-html-attribute-token.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ class WP_HTML_Attribute_Token {
6060
* Byte length of text spanning the attribute inside a tag.
6161
*
6262
* This span starts at the first character of the attribute name
63-
* and it ends
63+
* and it ends after one of three cases:
64+
*
65+
* - at the end of the attribute name for boolean attributes.
66+
* - at the end of the value for unquoted attributes.
67+
* - at the final single or double quote for quoted attributes.
6468
*
6569
* Example:
6670
*

0 commit comments

Comments
 (0)