Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: LayoutTests/fast/dom/XMLSerializer-prebound-xml-prefix.html

Issue 183663033: Pre-bind the 'xml' prefix for serialization of XML fragments (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/editing/MarkupAccumulator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | Source/core/editing/MarkupAccumulator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698