blob: dcdb57296df5a2c0ac3d60f143ed58b355f6d373 [file] [log] [blame]
<html xmlns="http://www.w3.org/1999/xhtml">
<script type="text/javascript" src="../security/resources/cross-frame-access.js"></script>
<pre id="console"></pre>
<script id="scriptTag">
if (window.testRunner)
testRunner.dumpAsText();
log("This test was written to address rdar://problem/4976879. And tests how namespaceURI's are assigned.");
log("");
log("Test2: document.createElement().namespaceURI")
shouldBe("document.createElement(\"div\").namespaceURI", "null");
log("");
var myScriptTag = document.getElementById("scriptTag");
log("Test3: script tag.namespaceURI");
shouldBe("myScriptTag.namespaceURI", "'http://www.w3.org/1999/xhtml'");
</script>
</html>