Bug 121067 - Block "]]>" in createCDataSection
Summary: Block "]]>" in createCDataSection
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords: BlinkMergeCandidate
Depends on:
Blocks:
 
Reported: 2013-09-09 19:12 PDT by Ryosuke Niwa
Modified: 2016-04-11 09:51 PDT (History)
9 users (show)

See Also:


Attachments
Fixes the bug (1.33 KB, patch)
2013-09-09 19:13 PDT, Ryosuke Niwa
no flags Details | Formatted Diff | Diff
Added the forgotten test (3.70 KB, patch)
2013-09-09 19:15 PDT, Ryosuke Niwa
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2 (487.76 KB, application/zip)
2013-09-09 20:06 PDT, Build Bot
no flags Details
Archive of layout-test-results from webkit-ews-05 for mac-mountainlion (532.94 KB, application/zip)
2013-09-09 20:25 PDT, Build Bot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.