dom: fix document creation process

This commit is contained in:
Pierre Tachoire
2024-04-22 17:32:29 +02:00
parent bf522937e1
commit 840aea9013
4 changed files with 60 additions and 34 deletions

View File

@@ -96,6 +96,7 @@ pub fn testExecFn(
var getImplementation = [_]Case{
.{ .src = "let impl = document.implementation", .ex = "undefined" },
.{ .src = "impl.createHTMLDocument();", .ex = "[object HTMLDocument]" },
.{ .src = "impl.createHTMLDocument('foo');", .ex = "[object HTMLDocument]" },
.{ .src = "impl.createDocument(null, 'foo');", .ex = "[object Document]" },
.{ .src = "impl.createDocumentType('foo', 'bar', 'baz')", .ex = "[object DocumentType]" },
.{ .src = "impl.hasFeature()", .ex = "true" },