Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Side by Side Diff: LayoutTests/fast/dom/importNode-cdata.html

Issue 167653002: Make importNode work when the XML document contains a CDATA section (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add testcase Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <body>
3 <p>This is a test to verify that importNode of a CDATASection on a HTML Document works.
4 <div id="output"/>
5 <script type="text/javascript">
6 if (window.testRunner)
7 testRunner.dumpAsText();
8
9 var output = document.getElementById('output');
10 var p = new DOMParser();
11 var doc = p.parseFromString('<root><![CDATA[ ]]></root>', "applicat ion/xml");
12
13 try {
14 var node = document.importNode(doc.documentElement, true);
15 output.innerHTML = "PASSED\n";
16 } catch (e) {
17 output.innerHTML = "FAILED with exception " + e + "\n";
18 }
19 </script>
20 </body>
21 </html>
22
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/importNode-cdata-expected.txt » ('j') | Source/core/dom/Document.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698