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

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: Create CDATASection directly in importNode 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/importNode-cdata-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
esprehn 2014/05/30 01:53:33 Missing doctype. We also generally leave off the <
2 <body>
3 <p>This is a test to verify that importNode of a CDATASection on a HTML Document works.
4 <div id="output"/>
esprehn 2014/05/30 01:53:33 </div>, what you have makes the div wrap the <scri
5 <script type="text/javascript">
esprehn 2014/05/30 01:53:33 leave off type attr
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 if (node.firstChild.ownerDocument != document) {
16 output.innerHTML = "FAILED because imported CDATASection has wrong owner document\n";
17 return;
18 }
19 output.innerHTML = "PASSED\n";
esprehn 2014/05/30 01:53:33 textContent
20 } catch (e) {
21 output.innerHTML = "FAILED with exception " + e + "\n";
esprehn 2014/05/30 01:53:33 textContent
22 }
23 </script>
24 </body>
25 </html>
26
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/importNode-cdata-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698