[wp-trac] [WordPress Trac] #60382: HTML API: WP_HTML_Processor::next_token nests void tags
WordPress Trac
noreply at wordpress.org
Tue Jan 30 15:54:29 UTC 2024
#60382: HTML API: WP_HTML_Processor::next_token nests void tags
--------------------------+-----------------------------
Reporter: jonsurrell | Owner: jonsurrell
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: HTML API | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When processing HTML like `<br><br>` with `WP_HTML_Processor::next_tag()`,
2 sibling BR tags are correctly found.
However, when using `WP_HTML_Processor::next_token()`, void tags are not
correctly handled, resulting in breadcrumbs from the second BR tag like `[
'HTML', 'BODY', 'BR', 'BR' ]`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60382>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list