- Timestamp:
- 05/29/2024 11:40:16 AM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/html-api/class-wp-html-tag-processor.php
r58040 r58233 927 927 } 928 928 $this->parser_state = self::STATE_MATCHED_TAG; 929 $this->token_length = $tag_ends_at - $this->token_starts_at;930 929 $this->bytes_already_parsed = $tag_ends_at + 1; 930 $this->token_length = $this->bytes_already_parsed - $this->token_starts_at; 931 931 932 932 /* … … 1014 1014 $this->token_starts_at = $was_at; 1015 1015 $this->token_length = $this->bytes_already_parsed - $this->token_starts_at; 1016 $this->text_starts_at = $tag_ends_at + 1;1016 $this->text_starts_at = $tag_ends_at; 1017 1017 $this->text_length = $this->tag_name_starts_at - $this->text_starts_at; 1018 1018 $this->tag_name_starts_at = $tag_name_starts_at; … … 2688 2688 * ^ this appears one character before the end of the closing ">". 2689 2689 */ 2690 return '/' === $this->html[ $this->token_starts_at + $this->token_length - 1];2690 return '/' === $this->html[ $this->token_starts_at + $this->token_length - 2 ]; 2691 2691 } 2692 2692
Note: See TracChangeset
for help on using the changeset viewer.