scinfu / SwiftSoup

SwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS)
https://scinfu.github.io/SwiftSoup/
MIT License
4.52k stars 345 forks source link

Add explicit fallthrough in `Doctype` state #257

Closed alexsteinh closed 9 months ago

alexsteinh commented 9 months ago

In Swift, there's no implicit fallthrough in switch cases. You have to make the fallthrough explicit by using fallthrough at the end of the case.

Tests are passing and this aligns with Jsoup.

scinfu commented 9 months ago

thank you