Closed njlr closed 3 years ago
Seems to get stuck here: https://github.com/fsprojects/FSharp.Data/blob/9dff16cb053709b77a7a124bd59b0b11a17358b9/src/Html/HtmlParser.fs#L680-L687
Adding a case for end of file seems to fix it
and attributeName state =
match state.Peek() with
| '=' -> state.Pop(); beforeAttributeValue state
| '/' -> state.Pop(); selfClosingStartTag state
| '>' -> state.Pop(); state.EmitTag(false)
| TextParser.LetterDigit _ -> state.ConsAttrName(); attributeName state
| TextParser.Whitespace _ -> afterAttributeName state
| TextParser.EndOfFile _ -> state.EmitTag(true)
| _ -> state.ConsAttrName(); attributeName state
let content = """<html>
</html
"""
printfn "%A" (HtmlDocument.Parse content) //prints "<html />"
@albert-du would be happy to accept a contribution!
@cartermp can you close this issue?
Whoops, looks like I forgot to do that, whee
(Different one to previous)