| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <body> | 3 <body> |
| 4 <p>This test checks whether serialized invalid XHTML is valid XML (for bug 9901)
.</p> | 4 <p>This test checks whether serialized invalid XHTML is valid XML (for bug 9901)
.</p> |
| 5 <p>If the test passes, you'll see a series of 'PASS' messages below.</p> | 5 <p>If the test passes, you'll see a series of 'PASS' messages below.</p> |
| 6 <pre id="console"></pre> | 6 <pre id="console"></pre> |
| 7 | 7 |
| 8 <script> | 8 <script> |
| 9 if (window.testRunner) | 9 if (window.testRunner) |
| 10 testRunner.dumpAsText(); | 10 testRunner.dumpAsText(); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 } | 30 } |
| 31 | 31 |
| 32 var doc = (new DOMParser()).parseFromString('<input xmlns="http://www.w3.org/199
9/xhtml">123</input>', 'text/xml'); | 32 var doc = (new DOMParser()).parseFromString('<input xmlns="http://www.w3.org/199
9/xhtml">123</input>', 'text/xml'); |
| 33 var str = (new XMLSerializer()).serializeToString(doc); | 33 var str = (new XMLSerializer()).serializeToString(doc); |
| 34 | 34 |
| 35 shouldBe('doc.firstChild.firstChild.nodeValue', '123'); | 35 shouldBe('doc.firstChild.firstChild.nodeValue', '123'); |
| 36 shouldBe('str', '<input xmlns=\"http://www.w3.org/1999/xhtml\">123</input>'); | 36 shouldBe('str', '<input xmlns=\"http://www.w3.org/1999/xhtml\">123</input>'); |
| 37 </script> | 37 </script> |
| 38 </body> | 38 </body> |
| 39 </html> | 39 </html> |
| OLD | NEW |