diff --git a/data/test/ignore b/data/test/ignore index 5f84915c..594855a2 100644 --- a/data/test/ignore +++ b/data/test/ignore @@ -65,17 +65,6 @@ tb: plain-text-unsafe.dat-29 tb: plain-text-unsafe.dat-30 tb: plain-text-unsafe.dat-31 tb: plain-text-unsafe.dat-32 -tb: tests10.dat-30 -tb: tests10.dat-31 -tb: tests10.dat-34 -tb: tests10.dat-35 -tb: tests12.dat-0 -tb: tests19.dat-35 -tb: tests19.dat-36 -tb: tests19.dat-37 -tb: tests19.dat-38 -tb: tests19.dat-39 -tb: tests19.dat-87 tb: tests20.dat-34 tb: tests20.dat-35 tb: tests20.dat-36 diff --git a/src/tree_builder/tag_sets.rs b/src/tree_builder/tag_sets.rs index 4ee78670..be0c5a40 100644 --- a/src/tree_builder/tag_sets.rs +++ b/src/tree_builder/tag_sets.rs @@ -46,7 +46,14 @@ macro_rules! declare_tag_set ( #[inline(always)] pub fn empty_set(_: QualName) -> bool { false } #[inline(always)] pub fn full_set(_: QualName) -> bool { true } -declare_tag_set!(pub default_scope = applet caption html table td th marquee object template); +declare_tag_set!(pub html_default_scope = + applet caption html table td th marquee object template); + +#[inline(always)] pub fn default_scope(name: QualName) -> bool { + html_default_scope(name.clone()) || + mathml_text_integration_point(name.clone()) || + html_integration_point(name) +} declare_tag_set!(pub list_item_scope = default_scope + ol ul); declare_tag_set!(pub button_scope = default_scope + button);