mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 07:31:47 +00:00
15 lines
682 B
HTML
15 lines
682 B
HTML
<!DOCTYPE html>
|
|
<script src="../testing.js"></script>
|
|
<script id=implementation>
|
|
let impl = document.implementation;
|
|
testing.expectEqual("[object HTMLDocument]", impl.createHTMLDocument().toString());;
|
|
|
|
const doc = impl.createHTMLDocument('foo');
|
|
testing.expectEqual("[object HTMLDocument]", doc.toString());
|
|
testing.expectEqual("foo", doc.title);
|
|
testing.expectEqual("[object HTMLBodyElement]", doc.body.toString());
|
|
testing.expectEqual("[object Document]", impl.createDocument(null, 'foo').toString());
|
|
testing.expectEqual("[object DocumentType]", impl.createDocumentType('foo', 'bar', 'baz').toString());
|
|
testing.expectEqual(true, impl.hasFeature());
|
|
</script>
|