[wp-trac] [WordPress Trac] #60455: HTML API: Trigger active format reconstruction when reaching text nodes.

WordPress Trac noreply at wordpress.org
Wed Mar 13 09:29:03 UTC 2024


#60455: HTML API: Trigger active format reconstruction when reaching text nodes.
-------------------------------------------------+-------------------------
 Reporter:  dmsnell                              |       Owner:  dmsnell
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.5
Component:  HTML API                             |     Version:  trunk
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests dev-        |     Focuses:
  reviewed fixed-major                           |
-------------------------------------------------+-------------------------
Changes (by swissspidy):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57823" 57823]:
 {{{
 #!CommitTicketReference repository="" revision="57823"
 HTML API: Trigger active format reconstruction when reaching text nodes.

 When encountering text nodes in an HTML document, the HTML parser needs
 to run the active format reconstruction algorithm, even if it doesn't
 stop to visit those text nodes. This is because the formats, which might
 need reconstructing, will impact the breadcrumbs of all downstream nodes
 from the text node.
 In this patch, this process is triggered, which properly triggers the
 active format reconstruction. It also enables the visiting of other token
 types as is possible in the Tag Processor.

 Developed in https://github.com/WordPress/wordpress-develop/pull/6054
 Discussed in https://core.trac.wordpress.org/ticket/60170

 Reviewed by swissspidy.
 Merges [57806] to the to the 6.5 branch.

 Props: dmsnell, jonsurrell, westonruter.
 Fixes: #60455.
 Follow-up to: [57348].
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60455#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list