diff --git a/crates/swc_html_parser/src/parser/mod.rs b/crates/swc_html_parser/src/parser/mod.rs index 4782c38026e..c4df91aa490 100644 --- a/crates/swc_html_parser/src/parser/mod.rs +++ b/crates/swc_html_parser/src/parser/mod.rs @@ -993,7 +993,7 @@ where Token::EndTag { tag_name, .. } if tag_name == "script" => { let popped = self.open_elements_stack.pop(); - self.update_end_tag_span(popped.as_ref(), token_and_info); + self.update_end_tag_span(popped.as_ref(), token_and_info.span); // No need to handle other steps } @@ -1059,7 +1059,7 @@ where let clone = inner_node.clone(); let popped = self.open_elements_stack.pop_until_node(&clone); - self.update_end_tag_span(popped.as_ref(), token_and_info); + self.update_end_tag_span(popped.as_ref(), token_and_info.span); return Ok(()); } @@ -1817,7 +1817,7 @@ where Token::EndTag { tag_name, .. } if tag_name == "head" => { let popped = self.open_elements_stack.pop(); - self.update_end_tag_span(popped.as_ref(), token_and_info); + self.update_end_tag_span(popped.as_ref(), token_and_info.span); self.insertion_mode = InsertionMode::AfterHead; } // An end tag whose tag name is one of: "body", "html", "br" @@ -1891,7 +1891,7 @@ where .open_elements_stack .pop_until_tag_name_popped(&["template"]); - self.update_end_tag_span(popped.as_ref(), token_and_info); + self.update_end_tag_span(popped.as_ref(), token_and_info.span); self.active_formatting_elements.clear_to_last_marker(); self.template_insertion_mode_stack.pop(); self.reset_insertion_mode(); @@ -1993,7 +1993,7 @@ where Token::EndTag { tag_name, .. } if tag_name == "noscript" => { let popped = self.open_elements_stack.pop(); - self.update_end_tag_span(popped.as_ref(), token_and_info); + self.update_end_tag_span(popped.as_ref(), token_and_info.span); self.insertion_mode = InsertionMode::InHead; } // A character token that is one of U+0009 CHARACTER TABULATION, U+000A LINE @@ -2496,6 +2496,11 @@ where return Ok(()); } + self.update_end_tag_span( + self.open_elements_stack.items.last(), + token_and_info.span, + ); + for node in &self.open_elements_stack.items { if !is_html_element!( node, @@ -2552,7 +2557,7 @@ where } else { self.update_end_tag_span( self.open_elements_stack.items.get(1), - token_and_info, + token_and_info.span, ); } @@ -2614,7 +2619,7 @@ where } else { self.update_end_tag_span( self.open_elements_stack.items.get(0), - token_and_info, + token_and_info.span, ); } @@ -3111,7 +3116,7 @@ where .open_elements_stack .pop_until_tag_name_popped(&[tag_name]); - self.update_end_tag_span(popped.as_ref(), token_and_info); + self.update_end_tag_span(popped.as_ref(), token_and_info.span); } } // An end tag whose tag name is "form" @@ -3187,7 +3192,7 @@ where ErrorKind::UnclosedElements(tag_name.clone()), )); } else { - self.update_end_tag_span(Some(&node), token_and_info); + self.update_end_tag_span(Some(&node), token_and_info.span); } self.open_elements_stack.remove(&node); @@ -3217,7 +3222,7 @@ where .open_elements_stack .pop_until_tag_name_popped(&["form"]); - self.update_end_tag_span(popped.as_ref(), token_and_info); + self.update_end_tag_span(popped.as_ref(), token_and_info.span); } } // An end tag whose tag name is "p" @@ -3278,7 +3283,7 @@ where let popped = self.open_elements_stack.pop_until_tag_name_popped(&["li"]); - self.update_end_tag_span(popped.as_ref(), token_and_info); + self.update_end_tag_span(popped.as_ref(), token_and_info.span); } } // An end tag whose tag name is one of: "dd", "dt" @@ -3321,7 +3326,7 @@ where .open_elements_stack .pop_until_tag_name_popped(&[tag_name]); - self.update_end_tag_span(popped.as_ref(), token_and_info); + self.update_end_tag_span(popped.as_ref(), token_and_info.span); } } // An end tag whose tag name is one of: "h1", "h2", "h3", "h4", "h5", "h6" @@ -3364,7 +3369,7 @@ where ErrorKind::UnclosedElements(tag_name.clone()), )); } else { - self.update_end_tag_span(Some(node), token_and_info); + self.update_end_tag_span(Some(node), token_and_info.span); } } @@ -3585,7 +3590,7 @@ where .open_elements_stack .pop_until_tag_name_popped(&[tag_name]); - self.update_end_tag_span(popped.as_ref(), token_and_info); + self.update_end_tag_span(popped.as_ref(), token_and_info.span); self.active_formatting_elements.clear_to_last_marker(); } } @@ -3628,7 +3633,8 @@ where self.reconstruct_active_formatting_elements()?; self.insert_html_element( - &mut self.create_fake_token_and_info("br", Some(token_and_info.span)), + &mut self + .create_fake_token_and_info(tag_name, Some(token_and_info.span)), )?; self.open_elements_stack.pop(); @@ -4254,7 +4260,10 @@ where Token::Eof => { self.errors .push(Error::new(token_and_info.span, ErrorKind::EofInText)); - self.open_elements_stack.pop(); + + let popped = self.open_elements_stack.pop(); + + self.update_end_tag_span(popped.as_ref(), token_and_info.span); self.insertion_mode = self.original_insertion_mode.clone(); self.process_token(token_and_info, None)?; } @@ -4343,7 +4352,7 @@ where // More things can be implemented to intercept script execution let popped = self.open_elements_stack.pop(); - self.update_end_tag_span(popped.as_ref(), token_and_info); + self.update_end_tag_span(popped.as_ref(), token_and_info.span); self.insertion_mode = self.original_insertion_mode.clone(); } // Any other end tag @@ -4355,7 +4364,7 @@ where if let Token::EndTag { .. } = token { self.update_end_tag_span( self.open_elements_stack.items.last(), - token_and_info, + token_and_info.span, ); } @@ -4534,7 +4543,7 @@ where .open_elements_stack .pop_until_tag_name_popped(&["table"]); - self.update_end_tag_span(popped.as_ref(), token_and_info); + self.update_end_tag_span(popped.as_ref(), token_and_info.span); self.reset_insertion_mode(); } } @@ -4789,7 +4798,7 @@ where .open_elements_stack .pop_until_tag_name_popped(&["caption"]); - self.update_end_tag_span(popped.as_ref(), token_and_info); + self.update_end_tag_span(popped.as_ref(), token_and_info.span); self.active_formatting_elements.clear_to_last_marker(); self.insertion_mode = InsertionMode::InTable; } @@ -4986,7 +4995,7 @@ where _ => { let popped = self.open_elements_stack.pop(); - self.update_end_tag_span(popped.as_ref(), token_and_info); + self.update_end_tag_span(popped.as_ref(), token_and_info.span); self.insertion_mode = InsertionMode::InTable; } } @@ -5111,7 +5120,7 @@ where self.open_elements_stack.clear_back_to_table_body_context(); self.update_end_tag_span( self.open_elements_stack.items.last(), - token_and_info, + token_and_info.span, ); self.open_elements_stack.pop(); self.insertion_mode = InsertionMode::InTable; @@ -5235,7 +5244,7 @@ where self.open_elements_stack.clear_back_to_table_row_context(); self.update_end_tag_span( self.open_elements_stack.items.last(), - token_and_info, + token_and_info.span, ); self.open_elements_stack.pop(); self.insertion_mode = InsertionMode::InTableBody; @@ -5394,7 +5403,7 @@ where .open_elements_stack .pop_until_tag_name_popped(&[tag_name]); - self.update_end_tag_span(popped.as_ref(), token_and_info); + self.update_end_tag_span(popped.as_ref(), token_and_info.span); self.active_formatting_elements.clear_to_last_marker(); self.insertion_mode = InsertionMode::InRow; } @@ -5591,7 +5600,10 @@ where Some(node) if is_html_element!(node, "optgroup") => { let popped = self.open_elements_stack.pop(); - self.update_end_tag_span(popped.as_ref(), token_and_info); + self.update_end_tag_span( + popped.as_ref(), + token_and_info.span, + ); } _ => {} } @@ -5603,7 +5615,7 @@ where Some(node) if is_html_element!(node, "optgroup") => { let popped = self.open_elements_stack.pop(); - self.update_end_tag_span(popped.as_ref(), token_and_info); + self.update_end_tag_span(popped.as_ref(), token_and_info.span); } _ => self.errors.push(Error::new( token_and_info.span, @@ -5620,7 +5632,7 @@ where Some(node) if is_html_element!(node, "option") => { let popped = self.open_elements_stack.pop(); - self.update_end_tag_span(popped.as_ref(), token_and_info); + self.update_end_tag_span(popped.as_ref(), token_and_info.span); } _ => self.errors.push(Error::new( token_and_info.span, @@ -5650,7 +5662,7 @@ where .open_elements_stack .pop_until_tag_name_popped(&["select"]); - self.update_end_tag_span(popped.as_ref(), token_and_info); + self.update_end_tag_span(popped.as_ref(), token_and_info.span); self.reset_insertion_mode(); } } @@ -5992,6 +6004,10 @@ where if !self.open_elements_stack.contains_template_element() { self.stopped = true; } else { + self.update_end_tag_span( + self.open_elements_stack.items.last(), + token_and_info.span, + ); self.errors.push(Error::new( token_and_info.span, ErrorKind::EofWithUnclosedElements, @@ -6056,7 +6072,7 @@ where } else { self.update_end_tag_span( self.open_elements_stack.items.get(0), - token_and_info, + token_and_info.span, ); self.insertion_mode = InsertionMode::AfterAfterBody; } @@ -6065,6 +6081,10 @@ where // // Stop parsing. Token::Eof => { + self.update_end_tag_span( + self.open_elements_stack.items.last(), + token_and_info.span, + ); self.stopped = true; } // Anything else @@ -6172,7 +6192,7 @@ where } else { let popped = self.open_elements_stack.pop(); - self.update_end_tag_span(popped.as_ref(), token_and_info); + self.update_end_tag_span(popped.as_ref(), token_and_info.span); if !self.is_fragment_case { match self.open_elements_stack.items.last() { @@ -6219,6 +6239,11 @@ where // // Stop parsing. Token::Eof => { + self.update_end_tag_span( + self.open_elements_stack.items.last(), + token_and_info.span, + ); + match self.open_elements_stack.items.last() { Some(node) if !is_html_element!(node, "html") => { self.errors.push(Error::new( @@ -6302,7 +6327,7 @@ where Token::EndTag { tag_name, .. } if tag_name == "html" => { self.update_end_tag_span( self.open_elements_stack.items.last(), - token_and_info, + token_and_info.span, ); self.insertion_mode = InsertionMode::AfterAfterFrameset; } @@ -6457,6 +6482,10 @@ where // // Stop parsing. Token::Eof => { + self.update_end_tag_span( + self.open_elements_stack.items.last(), + token_and_info.span, + ); self.stopped = true; } // A start tag whose tag name is "noframes" @@ -6617,7 +6646,7 @@ where } else { let node = self.open_elements_stack.items.last(); - self.update_end_tag_span(node, token_and_info); + self.update_end_tag_span(node, token_and_info.span); } // 2.- 3. @@ -7055,7 +7084,7 @@ where let popped = self.open_elements_stack.pop(); if is_closing { - self.update_end_tag_span(popped.as_ref(), token_and_info); + self.update_end_tag_span(popped.as_ref(), token_and_info.span); } return Ok(()); @@ -7164,7 +7193,7 @@ where while let Some(node) = self.open_elements_stack.pop() { if is_same_node(&node, &formatting_element.1) { if is_closing { - self.update_end_tag_span(Some(&node), token_and_info); + self.update_end_tag_span(Some(&node), token_and_info.span); } break; @@ -7552,7 +7581,7 @@ where let popped = self.open_elements_stack.pop_until_tag_name_popped(&["p"]); if is_close_p { - self.update_end_tag_span(popped.as_ref(), token_and_info) + self.update_end_tag_span(popped.as_ref(), token_and_info.span) } } @@ -8385,7 +8414,7 @@ where } } - fn update_end_tag_span(&self, node: Option<&RcNode>, token_and_info: &TokenAndInfo) { + fn update_end_tag_span(&self, node: Option<&RcNode>, span: Span) { if let Some(node) = node { if node.start_span.borrow().is_dummy() { return; @@ -8393,7 +8422,7 @@ where let mut end_tag_span = node.end_span.borrow_mut(); - *end_tag_span = Some(token_and_info.span); + *end_tag_span = Some(span); } } } diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/adoption01_dat/13/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/adoption01_dat/13/output.json index dde4159d289..c20390c2a02 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/adoption01_dat/13/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/adoption01_dat/13/output.json @@ -47,7 +47,7 @@ "type": "Element", "span": { "start": 1, - "end": 62, + "end": 66, "ctxt": 0 }, "tagName": "div", @@ -87,7 +87,7 @@ "type": "Element", "span": { "start": 9, - "end": 62, + "end": 66, "ctxt": 0 }, "tagName": "b", @@ -98,7 +98,7 @@ "type": "Element", "span": { "start": 12, - "end": 62, + "end": 66, "ctxt": 0 }, "tagName": "div", @@ -123,7 +123,7 @@ "type": "Element", "span": { "start": 17, - "end": 62, + "end": 66, "ctxt": 0 }, "tagName": "div", @@ -148,7 +148,7 @@ "type": "Element", "span": { "start": 22, - "end": 62, + "end": 66, "ctxt": 0 }, "tagName": "div", @@ -173,7 +173,7 @@ "type": "Element", "span": { "start": 27, - "end": 62, + "end": 66, "ctxt": 0 }, "tagName": "div", @@ -198,7 +198,7 @@ "type": "Element", "span": { "start": 32, - "end": 62, + "end": 66, "ctxt": 0 }, "tagName": "div", @@ -223,7 +223,7 @@ "type": "Element", "span": { "start": 37, - "end": 62, + "end": 66, "ctxt": 0 }, "tagName": "div", @@ -248,7 +248,7 @@ "type": "Element", "span": { "start": 42, - "end": 62, + "end": 66, "ctxt": 0 }, "tagName": "div", @@ -273,7 +273,7 @@ "type": "Element", "span": { "start": 47, - "end": 62, + "end": 66, "ctxt": 0 }, "tagName": "div", @@ -284,7 +284,7 @@ "type": "Element", "span": { "start": 6, - "end": 62, + "end": 66, "ctxt": 0 }, "tagName": "a", @@ -295,7 +295,7 @@ "type": "Element", "span": { "start": 52, - "end": 62, + "end": 66, "ctxt": 0 }, "tagName": "div", @@ -306,7 +306,7 @@ "type": "Element", "span": { "start": 57, - "end": 62, + "end": 66, "ctxt": 0 }, "tagName": "div", diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/adoption01_dat/13/span.rust-debug b/crates/swc_html_parser/tests/html5lib-tests-fixture/adoption01_dat/13/span.rust-debug index 6ef4c989a4c..e4011d735e5 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/adoption01_dat/13/span.rust-debug +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/adoption01_dat/13/span.rust-debug @@ -12,13 +12,13 @@ x Child ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `---- x Element ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `---- x Child @@ -48,25 +48,25 @@ x Child ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `---- x Element ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `---- x Child ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `---- x Element ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `---- x Child @@ -84,119 +84,107 @@ x Child ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `---- x Element ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `---- x Child ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `---- x Element ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `---- x Child ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `---- x Element ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `---- x Child ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `---- x Element ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `---- x Child ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `---- x Element ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `---- x Child ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^^^^^^^^^^^ `---- x Element ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^^^^^^^^^^^ `---- x Child ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^^^^^^ `---- x Element ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^^^^^^ `---- x Child ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^ `---- x Element ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + : ^^^^^^^^^^^^^^ `---- x Child ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^ + : ^^^^^^^^^ `---- x Element ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] 1 |
- : ^^^^^^^^^^ - `---- - - x Child - ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] - 1 |
- : ^^^^^ - `---- - - x Element - ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/13/input.html:1:1] - 1 |
- : ^^^^^ + : ^^^^^^^^^ `---- diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/adoption01_dat/17.fragment_div/output.json b/crates/swc_html_parser/tests/html5lib-tests-fixture/adoption01_dat/17.fragment_div/output.json index 49f232ec315..c0f6370cbfa 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/adoption01_dat/17.fragment_div/output.json +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/adoption01_dat/17.fragment_div/output.json @@ -84,7 +84,7 @@ "type": "Element", "span": { "start": 25, - "end": 36, + "end": 41, "ctxt": 0 }, "tagName": "aside", diff --git a/crates/swc_html_parser/tests/html5lib-tests-fixture/adoption01_dat/17.fragment_div/span.rust-debug b/crates/swc_html_parser/tests/html5lib-tests-fixture/adoption01_dat/17.fragment_div/span.rust-debug index bf0a3e9d07b..fd81be6390f 100644 --- a/crates/swc_html_parser/tests/html5lib-tests-fixture/adoption01_dat/17.fragment_div/span.rust-debug +++ b/crates/swc_html_parser/tests/html5lib-tests-fixture/adoption01_dat/17.fragment_div/span.rust-debug @@ -72,13 +72,13 @@ x Child ,-[$DIR/tests/html5lib-tests-fixture/adoption01_dat/17.fragment_div/input.html:1:1] 1 |