dedup document

This commit is contained in:
sjorsdonkers
2025-05-19 11:35:29 +02:00
parent a99d193b12
commit 76f1fcb634
10 changed files with 9 additions and 15 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.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| {