[wp-trac] [WordPress Trac] #59292: HTML API: Skip over contents of RAWTEXT elements such as STYLE.
WordPress Trac
noreply at wordpress.org
Wed Sep 6 00:19:04 UTC 2023
#59292: HTML API: Skip over contents of RAWTEXT elements such as STYLE.
--------------------------+-----------------------------
Reporter: dmsnell | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTML API | Version: trunk
Severity: normal | Keywords: has-patch
Focuses: |
--------------------------+-----------------------------
When encountering elements that imply switching into the RAWTEXT parsing
state, the Tag Processor should skip processing until existing the RAWTEXT
state.
In this patch the Tag Processor does just that, except for the case of the
deprecated XMP element which implies further and more complicated rules.
There's an implicit assumption that the SCRIPT ENABLED flag in HTML
parsing is enabled so that the contents of NOSCRIPT can be skipped.
Otherwise, it would be required to parse the contents of that tag.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59292>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list