OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html PUBLIC "STAFF" "staffNS.dtd"> |
| 2 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 <head> |
| 4 <title>DocumentType literals</title> |
| 5 <link rel="help" href="https://dom.spec.whatwg.org/#dom-documenttype-name"/> |
| 6 <link rel="help" href="https://dom.spec.whatwg.org/#dom-documenttype-publicid"/> |
| 7 <link rel="help" href="https://dom.spec.whatwg.org/#dom-documenttype-systemid"/> |
| 8 <script src="../../../../resources/testharness.js"></script> |
| 9 <script src="../../../../resources/testharnessreport.js"></script> |
| 10 </head> |
| 11 <body> |
| 12 <div id="log"/> |
| 13 <script> |
| 14 test(function() { |
| 15 var doctype = document.firstChild; |
| 16 assert_true(doctype instanceof DocumentType) |
| 17 assert_equals(doctype.name, "html") |
| 18 assert_equals(doctype.publicId, 'STAFF') |
| 19 assert_equals(doctype.systemId, 'staffNS.dtd') |
| 20 }) |
| 21 </script> |
| 22 </body> |
| 23 </html> |
OLD | NEW |