#60406 closed defect (bug) (fixed)
HTML API: CDATA Lookalike comments match invalid CDATA
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.5 | Priority: | normal |
Severity: | normal | Version: | 6.5 |
Component: | HTML API | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
Description
<![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.
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 "]]>".
Change History (5)
This ticket was mentioned in PR #5992 on WordPress/wordpress-develop by @jonsurrell.
13 months ago
#1
- Keywords has-patch has-unit-tests added
@jonsurrell commented on PR #5992:
13 months ago
#2
@dmsnell A small fix here to review 👋
Note: See
TracTickets for help on using
tickets.
Trac ticket: https://core.trac.wordpress.org/ticket/60406