@@ -222,7 +222,10 @@ commentEnd content = do
222222-- | 8.2.4.52: DOCTYPE state
223223-- FIXME
224224doctype :: Parser Token
225−doctype = Doctype <$> takeTill (=='>')
225+doctype = do
226+ content <- takeTill (=='>')
227+ char '>'
228+ return $ Doctype content
226229
227230-- | 8.2.4.44: Bogus comment state
228231bogusComment :: Parser Token