Skip to content

Commit

Permalink
Merge pull request #257 from alexsteinh/fix-implicit-fallthrough
Browse files Browse the repository at this point in the history
Add explicit fallthrough in `Doctype` state
  • Loading branch information
scinfu authored Jan 5, 2024
2 parents 8b6cf29 + f14ceff commit 8afe26d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/TokeniserState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,8 @@ enum TokeniserState: TokeniserStateProtocol {
break
case TokeniserStateVars.eof:
t.eofError(self)
// note: fall through to > case
// note: fall through to > case
fallthrough
case ">": // catch invalid <!DOCTYPE>
t.error(self)
t.createDoctypePending()
Expand Down

0 comments on commit 8afe26d

Please sign in to comment.