Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
yincongcyincong committed Dec 18, 2024
1 parent 76cab63 commit a601ecd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions html/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -836,15 +836,14 @@ func afterHeadIM(p *parser) bool {
case DoctypeToken:
// Ignore the token.
return true
case ErrorToken:
// Stop parsing.
p.parseImpliedToken(StartTagToken, a.Body, a.Body.String())
p.framesetOK = true
return true
}

p.parseImpliedToken(StartTagToken, a.Body, a.Body.String())
p.framesetOK = true
if p.tok.Type == ErrorToken {
// Stop parsing.
return true
}
return false
}

Expand Down

0 comments on commit a601ecd

Please sign in to comment.