HTML reader: fixed bug in pClose.
This caused exponential parsing behavior in documnets with unclosed tags in dl, dd, dt.
This commit is contained in:
parent
2e266b6a3a
commit
446cf6a1cf
1 changed files with 1 additions and 1 deletions
|
@ -707,7 +707,7 @@ pCloses tagtype = try $ do
|
|||
(TagOpen t' _) | t' `closes` tagtype -> return ()
|
||||
(TagClose "ul") | tagtype == "li" -> return ()
|
||||
(TagClose "ol") | tagtype == "li" -> return ()
|
||||
(TagClose "dl") | tagtype == "li" -> return ()
|
||||
(TagClose "dl") | tagtype == "dd" -> return ()
|
||||
(TagClose "table") | tagtype == "td" -> return ()
|
||||
(TagClose "table") | tagtype == "tr" -> return ()
|
||||
_ -> mzero
|
||||
|
|
Loading…
Add table
Reference in a new issue