| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <title>XMLSerializer: Pre-bound namespace prefixes</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 = '<foo xml:space="default"/>'; | |
| 9 var docFrag = new DOMParser().parseFromString(s, 'text/xml'); | |
| 10 var root = docFrag.removeChild(docFrag.firstChild); | |
| 11 var result = new XMLSerializer().serializeToString(root); | |
| 12 assert_equals(result, '<foo xml:space="default"/>'); | |
| 13 }, 'XMLSerializer does not emit a namespace declaration for the \'xml\' prefix.'
); | |
| 14 </script> | |
| OLD | NEW |