Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
optimize
  • Loading branch information
yincongcyincong committed Dec 18, 2024
commit a601ecd8498cf5e2e9911d59a194795a21c539ef
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