JS Test Harness: Remove more link tags
[WebKit-https.git] / LayoutTests / http / tests / misc / createElementNamespace1.xml
1 <html xmlns="http://www.w3.org/1999/xhtml">
2
3 <script type="text/javascript" src="../security/resources/cross-frame-access.js"></script>
4 <pre id="console"></pre>
5
6 <script id="scriptTag">
7     if (window.layoutTestController)
8         layoutTestController.dumpAsText();
9
10     log("This test was written to address rdar://problem/4976879.  And tests how namespaceURI's are assigned.");
11     log("");
12
13     log("Test1: document.namespaceURI")
14     shouldBe("document.namespaceURI", "null");
15     log("");
16
17     log("Test2: document.createElement().namespaceURI")
18     shouldBe("document.createElement(\"div\").namespaceURI", "null");
19     log("");
20
21     var myScriptTag = document.getElementById("scriptTag");
22     log("Test3: script tag.namespaceURI");
23     shouldBe("myScriptTag.namespaceURI", "'http://www.w3.org/1999/xhtml'");
24 </script>
25 </html>