Skip to content

Commit

Permalink
fix foreign-fragment.dat-65
Browse files Browse the repository at this point in the history
corresponding changes in HTML spec are: whatwg/html@f690ad9

and follow-up discussion at whatwg/html#6439
  • Loading branch information
untitaker committed Jul 18, 2023
1 parent 6c28250 commit dcc293c
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions html5ever/src/tree_builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1661,18 +1661,13 @@ where

fn unexpected_start_tag_in_foreign_content(&mut self, tag: Tag) -> ProcessResult<Handle> {
self.unexpected(&tag);
if self.is_fragment() {
self.foreign_start_tag(tag)
} else {
while !self.current_node_in(|n| {
*n.ns == ns!(html) ||
mathml_text_integration_point(n) ||
svg_html_integration_point(n)
}) {
self.pop();
while !self.current_node_in(|n| {
*n.ns == ns!(html) ||
mathml_text_integration_point(n) ||
svg_html_integration_point(n)
}) {
self.pop();
}
ReprocessForeign(TagToken(tag))
}
self.step(self.mode, TagToken(tag))
}
}

0 comments on commit dcc293c

Please sign in to comment.