DescriptionFix HTML parser CDATA edge-case and sync state names with spec
When encountering a sequence of ']]]' at the end of a CDATA section, we
should only buffer one ']' (the first one) and "remember" the other two.
The states exists in the spec[1][2][3] nowadays, so sync the names and remove
the comment about the states not being in the spec.
Fixes two subtests of wpt/html/syntax/parsing/html5lib_tests21.html.
[1] https://html.spec.whatwg.org/multipage/syntax.html#cdata-section-state
[2] https://html.spec.whatwg.org/multipage/syntax.html#cdata-section-bracket-state
[3] https://html.spec.whatwg.org/multipage/syntax.html#cdata-section-end-state
BUG=674496
Committed: https://crrev.com/e02441191c08939fd05e7a5fdf619b68e91558a2
Cr-Commit-Position: refs/heads/master@{#439396}
Patch Set 1 #
Messages
Total messages: 16 (11 generated)
|