diff --git a/crates/swc_html_parser/src/parser/mod.rs b/crates/swc_html_parser/src/parser/mod.rs
index a0ecea75a217..d7f34e8b9c8e 100644
--- a/crates/swc_html_parser/src/parser/mod.rs
+++ b/crates/swc_html_parser/src/parser/mod.rs
@@ -533,12 +533,7 @@ where
fn run(&mut self) -> PResult<()> {
while !self.stopped {
let adjusted_current_node = self.get_adjusted_current_node();
- let is_element_in_html_namespace =
- if is_element_in_html_namespace(adjusted_current_node) {
- true
- } else {
- is_html_integration_point(adjusted_current_node)
- };
+ let is_element_in_html_namespace = is_element_in_html_namespace(adjusted_current_node);
self.input
.set_adjusted_current_node_to_html_namespace(is_element_in_html_namespace);
diff --git a/crates/swc_html_parser/tests/recovery/text/cdata/dom.rust-debug b/crates/swc_html_parser/tests/recovery/text/cdata/dom.rust-debug
index 720ae91fb8e4..ff2b28dcb48b 100644
--- a/crates/swc_html_parser/tests/recovery/text/cdata/dom.rust-debug
+++ b/crates/swc_html_parser/tests/recovery/text/cdata/dom.rust-debug
@@ -63,16 +63,15 @@
|