| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html xmlns="http://www.w3.org/1999/xhtml"> | 2 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 <head> | 3 <head> |
| 4 <title>Node.nodeName</title> | 4 <title>Node.nodeName</title> |
| 5 <script src="../../../../resources/testharness.js"></script> | 5 <script src="/resources/testharness.js"></script> |
| 6 <script src="../../../../resources/testharnessreport.js"></script> | 6 <script src="/resources/testharnessreport.js"></script> |
| 7 </head> | 7 </head> |
| 8 <body> | 8 <body> |
| 9 <div id="log"/> | 9 <div id="log"/> |
| 10 <script> | 10 <script> |
| 11 test(function() { | 11 test(function() { |
| 12 var HTMLNS = "http://www.w3.org/1999/xhtml", | 12 var HTMLNS = "http://www.w3.org/1999/xhtml", |
| 13 SVGNS = "http://www.w3.org/2000/svg" | 13 SVGNS = "http://www.w3.org/2000/svg" |
| 14 assert_equals(document.createElementNS(HTMLNS, "I").nodeName, "I") | 14 assert_equals(document.createElementNS(HTMLNS, "I").nodeName, "I") |
| 15 assert_equals(document.createElementNS(HTMLNS, "i").nodeName, "i") | 15 assert_equals(document.createElementNS(HTMLNS, "i").nodeName, "i") |
| 16 assert_equals(document.createElementNS(SVGNS, "svg").nodeName, "svg") | 16 assert_equals(document.createElementNS(SVGNS, "svg").nodeName, "svg") |
| (...skipping 16 matching lines...) Expand all Loading... |
| 33 test(function() { | 33 test(function() { |
| 34 assert_equals(document.doctype.nodeName, "html") | 34 assert_equals(document.doctype.nodeName, "html") |
| 35 }, "For DocumentType nodes, nodeName should return the name.") | 35 }, "For DocumentType nodes, nodeName should return the name.") |
| 36 test(function() { | 36 test(function() { |
| 37 assert_equals(document.createDocumentFragment().nodeName, | 37 assert_equals(document.createDocumentFragment().nodeName, |
| 38 "#document-fragment") | 38 "#document-fragment") |
| 39 }, "For DocumentFragment nodes, nodeName should return \"#document-fragment\".") | 39 }, "For DocumentFragment nodes, nodeName should return \"#document-fragment\".") |
| 40 </script> | 40 </script> |
| 41 </body> | 41 </body> |
| 42 </html> | 42 </html> |
| OLD | NEW |