Index: LayoutTests/fast/dom/XMLSerializer-prebound-xml-prefix.html |
diff --git a/LayoutTests/fast/dom/XMLSerializer-prebound-xml-prefix.html b/LayoutTests/fast/dom/XMLSerializer-prebound-xml-prefix.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..70432e0784988793c5a8ade00ff49ac430c08432 |
--- /dev/null |
+++ b/LayoutTests/fast/dom/XMLSerializer-prebound-xml-prefix.html |
@@ -0,0 +1,14 @@ |
+<!DOCTYPE html> |
+<title>XMLSerializer: Pre-bound namespace prefixes</title> |
+<script src=../../resources/testharness.js></script> |
+<script src=../../resources/testharnessreport.js></script> |
+<div id=log></div> |
+<script> |
+test(function() { |
+ var s = '<foo xml:space="default"/>'; |
+ var docFrag = new DOMParser().parseFromString(s, 'text/xml'); |
+ var root = docFrag.removeChild(docFrag.firstChild); |
+ var result = new XMLSerializer().serializeToString(root); |
+ assert_equals(result, '<foo xml:space="default"/>'); |
+}, 'XMLSerializer does not emit a namespace declaration for the \'xml\' prefix.'); |
+</script> |