| OLD | NEW |
| (Empty) |
| 1 <!doctype html> | |
| 2 <title>XMLSerializer serializes entities to XML-compatible format</title> | |
| 3 <script src=../../resources/testharness.js></script> | |
| 4 <script src=../../resources/testharnessreport.js></script> | |
| 5 <div id=log></div> | |
| 6 <script> | |
| 7 test(function() { | |
| 8 var s = '<svg xmlns="http://www.w3.org/2000/svg">\u00a0</svg>'; | |
| 9 var svgDoc = new DOMParser().parseFromString(s, 'text/xml'); | |
| 10 var svgRoot = svgDoc.removeChild(svgDoc.firstChild); | |
| 11 var result1 = new XMLSerializer().serializeToString(svgRoot); | |
| 12 document.body.appendChild(svgRoot); | |
| 13 var result2 = new XMLSerializer().serializeToString(svgRoot); | |
| 14 document.body.removeChild(svgRoot); | |
| 15 assert_equals(result1, result2); | |
| 16 }, 'XMLSerializer: Serializes entities to XML-compatible format regardless of ow
nerDocument.'); | |
| 17 </script> | |
| OLD | NEW |