default:blank as default document

This commit is contained in:
sjorsdonkers
2025-05-20 12:31:40 +02:00
committed by Sjors
parent 0929bd217d
commit 967ab18d53
12 changed files with 34 additions and 36 deletions

View File

@@ -116,7 +116,7 @@ fn run(arena: Allocator, test_file: []const u8, loader: *FileLoader, err_out: *?
try polyfill.load(arena, runner.scope);
// loop over the scripts.
const doc = parser.documentHTMLToDocument(runner.state.window.document.?);
const doc = parser.documentHTMLToDocument(runner.state.window.document);
const scripts = try parser.documentGetElementsByTagName(doc, "script");
const script_count = try parser.nodeListLength(scripts);
for (0..script_count) |i| {