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> |
(...skipping 22 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 |