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

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: Rebase and fix test Created 6 years, 6 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 <!DOCTYPE html>
2 <p>This is a test to verify that importNode of a CDATASection on a HTML Document works.
3 <div id="output"></div>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
7
8 var output = document.getElementById('output');
9 var p = new DOMParser();
10 var doc = p.parseFromString('<root><![CDATA[ ]]></root>', "application/xml" );
11
12 try {
13 var node = document.importNode(doc.documentElement, true);
14 if (node.firstChild.ownerDocument != document) {
15 output.textContent = "FAILED because imported CDATASection has wrong owner document\n";
16 } else {
17 output.textContent = "PASSED\n";
18 }
19 } catch (e) {
20 output.textContent = "FAILED with exception " + e + "\n";
21 }
22 </script>
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