lit compatibility

Aims to improve compatibility for the lit framework (e.g. what Reddit is using).

1 - Adds support for adoptedStyleSheets to the Document and ShadowRoot
2 - Adds mock support for replace and replaceSync to the CSSStyleSheet
3 - Optionally include shadowroot in dump
4 - Special-case setting innerHTML on a TemplateElement
This commit is contained in:
Karl Seguin
2025-08-07 16:47:31 +08:00
parent bede244598
commit f5da89b50b
10 changed files with 140 additions and 8 deletions

View File

@@ -135,8 +135,9 @@ fn run(alloc: Allocator) !void {
// dump
if (opts.dump) {
try page.dump(.{
.exclude_scripts = opts.noscript,
.page = page,
.with_base = opts.withbase,
.exclude_scripts = opts.noscript,
}, std.io.getStdOut());
}
},