blob: 18ab1a358f318923acb5c8852f5adb59d1805c3a [file] [log] [blame]
<foo>
<script xmlns="http://www.w3.org/1999/xhtml" type="text/javascript" src="../security/resources/cross-frame-access.js"></script>
<pre xmlns="http://www.w3.org/1999/xhtml" id="console"></pre>
<script xmlns="http://www.w3.org/1999/xhtml" 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("Test1: document.namespaceURI")
shouldBe("document.namespaceURI", "undefined");
log("");
log("Test2: document.createElement().namespaceURI")
shouldBe("document.createElement(\"div\").namespaceURI", "'http://www.w3.org/1999/xhtml'");
log("");
var myScriptTag = document.getElementById("scriptTag");
log("Test3: script tag.namespaceURI");
shouldBe("myScriptTag.namespaceURI", "'http://www.w3.org/1999/xhtml'");
</script>
</foo>