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
Next Next commit
fix net/html oom
  • Loading branch information
yincongcyincong committed Nov 4, 2024
commit 4cef851bd435e45d2b9a1ed26bcd282ad25d25b1
3 changes: 3 additions & 0 deletions html/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,9 @@ func afterHeadIM(p *parser) bool {
case DoctypeToken:
// Ignore the token.
return true
case ErrorToken:
// Stop parsing.
return true
}

p.parseImpliedToken(StartTagToken, a.Body, a.Body.String())
Expand Down