diff --git a/crates/swc_html_codegen/tests/fixture.rs b/crates/swc_html_codegen/tests/fixture.rs index ac17c7d7489f..6df861e83e9e 100644 --- a/crates/swc_html_codegen/tests/fixture.rs +++ b/crates/swc_html_codegen/tests/fixture.rs @@ -626,7 +626,7 @@ static IGNORE_TAG_OMISSION: &[&str] = &[ "tests18_dat/12/input.html", "tests18_dat/21/input.html", "tests19_dat/103/input.html", - "tests20_dat/41/input.html", + "tests20_dat/42/input.html", "tests26_dat/2/input.html", "plain-text-unsafe_dat/0/input.html", "template_dat/107/input.html", diff --git a/crates/swc_html_parser/tests/fixture.rs b/crates/swc_html_parser/tests/fixture.rs index dea7c48cb584..c435498cd02e 100644 --- a/crates/swc_html_parser/tests/fixture.rs +++ b/crates/swc_html_parser/tests/fixture.rs @@ -1086,9 +1086,15 @@ fn html5lib_test_tree_construction(input: PathBuf) { let mut file_stem = counter.to_string(); - if !document_fragment.is_empty() { - file_stem += ".fragment_"; - file_stem += &document_fragment.join("").replace(' ', "_"); + // TODO workaround, fix - https://github.com/html5lib/html5lib-tests/pull/151 + let need_skip_fragment = relative_path_to_test.contains("template_dat") + && matches!(counter, 109 | 110 | 111); + + if !need_skip_fragment { + if !document_fragment.is_empty() { + file_stem += ".fragment_"; + file_stem += &document_fragment.join("").replace(' ', "_"); + } } if scripting_enabled { diff --git a/crates/swc_html_parser/tests/html5lib-tests b/crates/swc_html_parser/tests/html5lib-tests index 538a6cd2a014..038c06635ae5 160000 --- a/crates/swc_html_parser/tests/html5lib-tests +++ b/crates/swc_html_parser/tests/html5lib-tests @@ -1 +1 @@ -Subproject commit 538a6cd2a014eff08a35964a1995643b63fc02b9 +Subproject commit 038c06635ae54f700fee3154acb4d45fb3dcae8d diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/template_dat/109/dom.rust-debug b/crates/swc_html_parser/tests/html5lib-tests-fixture/template_dat/109/dom.rust-debug new file mode 100644 index 000000000000..febf41fffef5 --- /dev/null +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/template_dat/109/dom.rust-debug @@ -0,0 +1,9 @@ +| +| +| +|