diff --git a/crates/obscura-dom/src/tree_sink.rs b/crates/obscura-dom/src/tree_sink.rs index 35952f9..69783ba 100644 --- a/crates/obscura-dom/src/tree_sink.rs +++ b/crates/obscura-dom/src/tree_sink.rs @@ -224,6 +224,21 @@ impl TreeSink for DomTree { self.set_quirks(mode == QuirksMode::Quirks); } + fn allow_declarative_shadow_roots(&self, _intended_parent: &NodeId) -> bool { + // html5ever defaults this hook to `true`, but its default + // `attach_declarative_shadow` implementation returns an error. In + // that combination the tree builder consumes + // `