Make WordPress Core

Changeset 64872


Ignore:
Timestamp:
10/28/2026 10:01:44 AM (8 hours ago)
Author:
jonsurrell
Message:

HTML API: Prevent re-scan of attribute spans in closing tags.

Developed in: ​https://github.com/WordPress/wordpress-develop/pull/15112

Follow-up to r55469, r57348.

Props dmsnell, jonsurrell.
See #65984.

File:
1 edited

Legend:

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

    r64636 r64872  
    16781678
    16791679                        if ( $is_closing ) {
    1680                                 $this->bytes_already_parsed = $closer_potentially_starts_at;
     1680                                $this->bytes_already_parsed = $at;
    16811681                                $this->tag_name_starts_at   = $closer_potentially_starts_at;
    16821682                                if ( $this->bytes_already_parsed >= $doc_length ) {
Note: See TracChangeset for help on using the changeset viewer.