We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76cab63 commit a601ecdCopy full SHA for a601ecd
html/parse.go
@@ -836,15 +836,14 @@ func afterHeadIM(p *parser) bool {
836
case DoctypeToken:
837
// Ignore the token.
838
return true
839
- case ErrorToken:
840
- // Stop parsing.
841
- p.parseImpliedToken(StartTagToken, a.Body, a.Body.String())
842
- p.framesetOK = true
843
- return true
844
}
845
846
p.parseImpliedToken(StartTagToken, a.Body, a.Body.String())
847
p.framesetOK = true
+ if p.tok.Type == ErrorToken {
+ // Stop parsing.
+ return true
+ }
848
return false
849
850
0 commit comments