Index: LayoutTests/fast/dom/importNode-cdata.html |
diff --git a/LayoutTests/fast/dom/importNode-cdata.html b/LayoutTests/fast/dom/importNode-cdata.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..67741b9d5852e72f9233045999196496a93b327d |
--- /dev/null |
+++ b/LayoutTests/fast/dom/importNode-cdata.html |
@@ -0,0 +1,22 @@ |
+<html> |
+ <body> |
+ <p>This is a test to verify that importNode of a CDATASection on a HTML Document works. |
+ <div id="output"/> |
+ <script type="text/javascript"> |
+ if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+ var output = document.getElementById('output'); |
+ var p = new DOMParser(); |
+ var doc = p.parseFromString('<root><![CDATA[ ]]></root>', "application/xml"); |
+ |
+ try { |
+ var node = document.importNode(doc.documentElement, true); |
+ output.innerHTML = "PASSED\n"; |
+ } catch (e) { |
+ output.innerHTML = "FAILED with exception " + e + "\n"; |
+ } |
+ </script> |
+ </body> |
+</html> |
+ |