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

WordPress Trac noreply at wordpress.org
Wed Feb 7 06:47:12 UTC 2024


#60455: HTML API: Trigger active format reconstruction when reaching text nodes.
--------------------------+----------------------------------------
 Reporter:  dmsnell       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  HTML API      |    Version:  trunk
 Severity:  normal        |   Keywords:  has-patch needs-unit-tests
  Focuses:                |
--------------------------+----------------------------------------
 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, but the text nodes are then
 skipped, since the HTML Processor doesn't currently support visiting them.

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


More information about the wp-trac mailing list