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