| OLD | NEW |
| 1 <foo> | 1 <foo> |
| 2 <script xmlns="http://www.w3.org/1999/xhtml" type="text/javascript" src="../secu
rity/resources/cross-frame-access.js"></script> | 2 <script xmlns="http://www.w3.org/1999/xhtml" type="text/javascript" src="../secu
rity/resources/cross-frame-access.js"></script> |
| 3 <pre xmlns="http://www.w3.org/1999/xhtml" id="console"></pre> | 3 <pre xmlns="http://www.w3.org/1999/xhtml" id="console"></pre> |
| 4 <script xmlns="http://www.w3.org/1999/xhtml" id="scriptTag"> | 4 <script xmlns="http://www.w3.org/1999/xhtml" id="scriptTag"> |
| 5 if (window.testRunner) | 5 if (window.testRunner) |
| 6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
| 7 | 7 |
| 8 log("This test was written to address rdar://problem/4976879. And tests how
namespaceURI's are assigned."); | 8 log("This test was written to address rdar://problem/4976879. And tests how
namespaceURI's are assigned."); |
| 9 log(""); | 9 log(""); |
| 10 | 10 |
| 11 log("Test1: document.namespaceURI") | 11 log("Test1: document.namespaceURI") |
| 12 shouldBe("document.namespaceURI", "null"); | 12 shouldBe("document.namespaceURI", "undefined"); |
| 13 log(""); | 13 log(""); |
| 14 | 14 |
| 15 log("Test2: document.createElement().namespaceURI") | 15 log("Test2: document.createElement().namespaceURI") |
| 16 shouldBe("document.createElement(\"div\").namespaceURI", "'http://www.w3.org
/1999/xhtml'"); | 16 shouldBe("document.createElement(\"div\").namespaceURI", "'http://www.w3.org
/1999/xhtml'"); |
| 17 log(""); | 17 log(""); |
| 18 | 18 |
| 19 var myScriptTag = document.getElementById("scriptTag"); | 19 var myScriptTag = document.getElementById("scriptTag"); |
| 20 log("Test3: script tag.namespaceURI"); | 20 log("Test3: script tag.namespaceURI"); |
| 21 shouldBe("myScriptTag.namespaceURI", "'http://www.w3.org/1999/xhtml'"); | 21 shouldBe("myScriptTag.namespaceURI", "'http://www.w3.org/1999/xhtml'"); |
| 22 </script> | 22 </script> |
| 23 </foo> | 23 </foo> |
| OLD | NEW |