[wp-trac] [WordPress Trac] #60455: HTML API: Trigger active format reconstruction when reaching text nodes.
WordPress Trac
noreply at wordpress.org
Tue Mar 12 00:22:57 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 | Focuses:
--------------------------------------+----------------------
Changes (by dmsnell):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"57806" 57806]:
{{{
#!CommitTicketReference repository="" revision="57806"
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
Props: dmsnell, jonsurrell, westonruter.
Fixes: #60455.
Follow-up to: [57348].
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60455#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list