[wp-trac] [WordPress Trac] #60406: HTML API: CDATA Lookalike comments match invalid CDATA
WordPress Trac
noreply at wordpress.org
Wed Jan 31 17:10:23 UTC 2024
#60406: HTML API: CDATA Lookalike comments match invalid CDATA
--------------------------+-----------------------------
Reporter: jonsurrell | Owner: jonsurrell
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: HTML API | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
`<![CDATA[…]>` is incorrectly treated as a CDATA lookalike comment. It
will be parsed as a comment, but would never be a valid CDATA section
because it is missing a closing brace. It must have `]]>` to close the
section.
[https://html.spec.whatwg.org/#cdata-sections See CDATA sections.]
> CDATA sections must consist of the following components, in this order:
> The string "<![CDATA[".
> Optionally, text, with the additional restriction that the text must not
contain the string "]]>".
> The string "]]>".
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60406>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list