diff --git a/crates/swc_html_parser/src/parser/mod.rs b/crates/swc_html_parser/src/parser/mod.rs index 8ae3580122e..e8cec751255 100644 --- a/crates/swc_html_parser/src/parser/mod.rs +++ b/crates/swc_html_parser/src/parser/mod.rs @@ -4518,6 +4518,7 @@ where | &js_word!("tfoot") | &js_word!("thead") | &js_word!("tr") + | &js_word!("template") ) => { true diff --git a/crates/swc_html_parser/tests/fixture/element/template-1/dom.rust-debug b/crates/swc_html_parser/tests/fixture/element/template-1/dom.rust-debug new file mode 100644 index 00000000000..febf41fffef --- /dev/null +++ b/crates/swc_html_parser/tests/fixture/element/template-1/dom.rust-debug @@ -0,0 +1,9 @@ +| +| +| +|