2 <script xmlns=
"http://www.w3.org/1999/xhtml" type=
"text/javascript" src=
"../security/resources/cross-frame-access.js"></script>
3 <pre xmlns=
"http://www.w3.org/1999/xhtml" id=
"console"></pre>
4 <script xmlns=
"http://www.w3.org/1999/xhtml" id=
"scriptTag">
6 testRunner.dumpAsText();
8 log(
"This test was written to address rdar://problem/4976879. And tests how namespaceURI's are assigned.");
11 log(
"Test1: document.namespaceURI")
12 shouldBe(
"document.namespaceURI",
"undefined");
15 log(
"Test2: document.createElement().namespaceURI")
16 shouldBe(
"document.createElement(\"div\
").namespaceURI",
"'http://www.w3.org/1999/xhtml'");
19 var myScriptTag = document.getElementById(
"scriptTag");
20 log(
"Test3: script tag.namespaceURI");
21 shouldBe(
"myScriptTag.namespaceURI",
"'http://www.w3.org/1999/xhtml'");