Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / XMLSerializer-xml-namespace.html
blob509b7ea3a8f30d2f2d20ad61dd24569dd5219305
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head>
3 <script type="text/javascript">
4 function runTest()
6 if (window.testRunner)
7 testRunner.dumpAsText();
9 var target = document.getElementById("target");
11 var xmlns = "http://www.w3.org/XML/1998/namespace";
13 // XML with correct xml prefix on space
14 var xml1 = document.createElementNS(xmlns, "foo");
15 xml1.setAttributeNS(xmlns, 'xml:space', 'preserve');
17 var xml2 = document.createElementNS(xmlns, "bar");
18 xml2.setAttributeNS(xmlns, 'space', 'default');
20 target.appendChild(xml1);
21 target.appendChild(xml2);
23 var serializer = new XMLSerializer();
24 var xmlString = serializer.serializeToString(target);
26 var outputText = document.getElementById("output");
27 outputText.textContent = xmlString;
29 </script>
30 </head>
31 <body onload="runTest()">
32 <div id="target"/>
33 <div id="output"/>
34 </body>
35 </html>