Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / misc / createElementNamespace2.xhtml
blob18ab1a358f318923acb5c8852f5adb59d1805c3a
1 <foo>
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">
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 log("This test was written to address rdar://problem/4976879. And tests how namespaceURI's are assigned.");
9 log("");
11 log("Test1: document.namespaceURI")
12 shouldBe("document.namespaceURI", "undefined");
13 log("");
15 log("Test2: document.createElement().namespaceURI")
16 shouldBe("document.createElement(\"div\").namespaceURI", "'http://www.w3.org/1999/xhtml'");
17 log("");
19 var myScriptTag = document.getElementById("scriptTag");
20 log("Test3: script tag.namespaceURI");
21 shouldBe("myScriptTag.namespaceURI", "'http://www.w3.org/1999/xhtml'");
22 </script>
23 </foo>