| OLD | NEW |
| 1 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=11772">bug 11772</a>
: | 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> | 2 XMLSerializer.serializeToString incorrect value for CDATA nodes.</p> |
| 3 <p>Should say PASS below.</p> | 3 <p>Should say PASS below.</p> |
| 4 <script> | 4 <script> |
| 5 if (window.testRunner) | 5 if (window.testRunner) |
| 6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
| 7 | 7 |
| 8 var d = window.document.implementation.createDocument("", "", null); | 8 var d = window.document.implementation.createDocument("", "", null); |
| 9 var n = d.createCDATASection("-- <cdata> --"); | 9 var n = d.createCDATASection("-- <cdata> --"); |
| 10 var s = (new XMLSerializer()).serializeToString(n); | 10 var s = (new XMLSerializer()).serializeToString(n); |
| 11 if (s == "<![CDATA[-- <cdata> --]]>") | 11 if (s == "<![CDATA[-- <cdata> --]]>") |
| 12 document.write("PASS"); | 12 document.write("PASS"); |
| 13 else | 13 else |
| 14 document.write("FAIL"); | 14 document.write("FAIL"); |
| 15 </script> | 15 </script> |
| OLD | NEW |