add <base> in the DOM tree

This commit is contained in:
Pierre Tachoire
2025-08-08 18:31:08 +02:00
parent 5e30a3997e
commit dc23a74e7b
3 changed files with 34 additions and 12 deletions

View File

@@ -136,7 +136,7 @@ fn run(alloc: Allocator) !void {
if (opts.dump) {
try page.dump(.{
.exclude_scripts = opts.noscript,
.include_base = if (opts.withbase) page.url.raw else null,
.with_base = opts.withbase,
}, std.io.getStdOut());
}
},