Skip to content

Commit af5a120

Browse files
committed
Remove </body>
1 parent a19a6ea commit af5a120

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html5ever/src/tree_builder/rules.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ where
121121
Token::Characters(SplitStatus::Whitespace, _) => ProcessResult::Done,
122122
Token::Comment(text) => self.append_comment_to_doc(text),
123123

124-
Token::Tag(tag @ tag!(<html> | </body>)) => {
124+
Token::Tag(tag @ tag!(<html>)) => {
125125
self.create_root(tag.attrs);
126126
self.mode.set(InsertionMode::BeforeHead);
127127
ProcessResult::Done

0 commit comments

Comments
 (0)