mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:17:42 +00:00
LibWeb: Make DOMImplementation.createHTMLDocument() create HTMLDocument
Prior to this change, this API would actually create an XML Document(!)
This commit is contained in:
parent
b9bacb3ff4
commit
99ca2ccf08
5 changed files with 28 additions and 2 deletions
|
@ -0,0 +1,12 @@
|
|||
<body>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
println(document);
|
||||
println(document instanceof HTMLDocument);
|
||||
let newDocument = document.implementation.createHTMLDocument();
|
||||
println(newDocument);
|
||||
println(newDocument instanceof HTMLDocument);
|
||||
});
|
||||
</script>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue