[wp-trac] [WordPress Trac] #59292: HTML API: Skip over contents of RAWTEXT elements such as STYLE.
WordPress Trac
noreply at wordpress.org
Wed Sep 13 12:53:47 UTC 2023
#59292: HTML API: Skip over contents of RAWTEXT elements such as STYLE.
-------------------------------------------------+-------------------------
Reporter: dmsnell | Owner: Bernhard
| Reiter
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.3.2
Component: HTML API | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses:
fixed-major |
-------------------------------------------------+-------------------------
Changes (by Bernhard Reiter):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"56564" 56564]:
{{{
#!CommitTicketReference repository="" revision="56564"
HTML API: Skip over contents of RAWTEXT elements such as STYLE.
When encountering elements that imply switching into the RAWTEXT parsing
state,
the Tag Processor should skip processing until exiting 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.
Props dmsnell.
Merges [56563] to the 6.3 branch.
Fixes #59292.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59292#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list