blob: 7bbae44ccd8335ac2abbd02c23a3ccdbbad162a3 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function runTest()
{
if (window.testRunner)
testRunner.dumpAsText();
var doc = document.implementation.createDocument("", "", null);
var parent = doc.firstChild;
var element = doc.createElementNS("ns1", "x:y");
element.setAttributeNS("ns2", "x:z", "val");
element.setAttributeNS("ns3", "w", "val");
doc.appendChild(element);
var serializer = new XMLSerializer();
var xmlString = serializer.serializeToString(doc);
var outputText = document.getElementById("output");
outputText.textContent = xmlString;
}
</script>
</head>
<body onload="runTest()">
<div id="target"/>
<div id="output"/>
</body>
</html>