Bug 121067

Summary: Block "]]>" in createCDataSection
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: New BugsAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED WONTFIX    
Severity: Normal CC: ap, buildbot, cdumez, commit-queue, esprehn+autocc, kangil.han, rniwa, robert, rwlbuis
Priority: P2 Keywords: BlinkMergeCandidate
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Fixes the bug
none
Added the forgotten test
buildbot: commit-queue-
Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2
none
Archive of layout-test-results from webkit-ews-05 for mac-mountainlion none

Description Ryosuke Niwa 2013-09-09 19:12:24 PDT
Block "]]>" in createCDataSection
Comment 1 Ryosuke Niwa 2013-09-09 19:13:49 PDT
Created attachment 211134 [details]
Fixes the bug
Comment 2 Ryosuke Niwa 2013-09-09 19:15:14 PDT
Created attachment 211135 [details]
Added the forgotten test
Comment 3 Alexey Proskuryakov 2013-09-09 19:37:39 PDT
Comment on attachment 211135 [details]
Added the forgotten test

View in context: https://bugs.webkit.org/attachment.cgi?id=211135&action=review

> Source/WebCore/ChangeLog:11
> +        It's not possible to serialize a CData section with ]]> in it so disallow that already in xmldoc.createCDataSection.
> +        New behavior matches that of Trident and Gecko.

What about appendData, insertData, replaceData and replaceWholeText? This change as made in Blink is pretty much useless alone.
Comment 4 Build Bot 2013-09-09 20:06:39 PDT
Comment on attachment 211135 [details]
Added the forgotten test

Attachment 211135 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/1736487

New failing tests:
dom/xhtml/level3/core/documentnormalizedocument07.xhtml
dom/xhtml/level3/core/documentnormalizedocument08.xhtml
dom/xhtml/level3/core/handleerror01.xhtml
dom/xhtml/level3/core/splitcdatasections01.xhtml
Comment 5 Build Bot 2013-09-09 20:06:42 PDT
Created attachment 211139 [details]
Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-10  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.4
Comment 6 Alexey Proskuryakov 2013-09-09 20:13:07 PDT
> dom/xhtml/level3/core/splitcdatasections01.xhtml

So this documents correct behavior.
Comment 7 Build Bot 2013-09-09 20:25:26 PDT
Comment on attachment 211135 [details]
Added the forgotten test

Attachment 211135 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/1726773

New failing tests:
dom/xhtml/level3/core/documentnormalizedocument07.xhtml
dom/xhtml/level3/core/documentnormalizedocument08.xhtml
dom/xhtml/level3/core/handleerror01.xhtml
dom/xhtml/level3/core/splitcdatasections01.xhtml
Comment 8 Build Bot 2013-09-09 20:25:29 PDT
Created attachment 211144 [details]
Archive of layout-test-results from webkit-ews-05 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-05  Port: mac-mountainlion  Platform: Mac OS X 10.8.4
Comment 9 Ryosuke Niwa 2013-09-09 21:17:51 PDT
Comment on attachment 211135 [details]
Added the forgotten test

You're right. We should probably update other functions.
Comment 10 Alexey Proskuryakov 2013-09-10 16:37:07 PDT
I'm not quite sure what DOM4 authors are trying to achieve here. Are all ways to create non-serializable documents being banned?
Comment 11 Chris Dumez 2016-04-11 08:43:08 PDT
createCDataSection() and replaceWholeText() have been dropped from the latest DOM living standard. appendData, insertData, replaceData are still there and do not say anything about blocking "]]>".

WebKit still supports createCDataSection() and replaceWholeText() though.
Comment 12 Ryosuke Niwa 2016-04-11 09:51:12 PDT
Okay.