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

@@ -53,7 +53,7 @@ pub const Document = struct {
if (userctx.document) |cur| {
title = try parser.documentHTMLGetTitle(cur);
}
const doc = try parser.domImplementationCreateHTMLDocument(title);
const doc = try parser.documentCreateDocument(title);
if (userctx.document) |cur| {
// we have to work w/ document instead of html document.