Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / serialize-cdata.html
blobb848019d353be81e3334a9dc8b9c6055db730353
1 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=11772">bug 11772</a>:
2 XMLSerializer.serializeToString incorrect value for CDATA nodes.</p>
3 <p>Should say PASS below.</p>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 var d = window.document.implementation.createDocument("", "", null);
9 var n = d.createCDATASection("-- <cdata> --");
10 var s = (new XMLSerializer()).serializeToString(n);
11 if (s == "<![CDATA[-- <cdata> --]]>")
12 document.write("PASS");
13 else
14 document.write("FAIL");
15 </script>