Open Skyb0rg007 opened 4 months ago
As currently implemented, this library does not have the infrastructure to produce error messages. I have modified the lexer so that it now raises a more informative exception (this change will be included in 110.99.6).
- HTML4Parser.fromString "<";
uncaught exception Fail [Fail: Unexpected character '<']
raised at: html4.l.sml:230.16-230.67
ml-lpt/lib/err-handler.sml:261.63
A complete fix (i.e., properly reporting an error message and returning NONE
) will require a lot more work and possibly a change to the API, so I'm leaving the bug open for now.
Version
110.99.5 (Latest)
Operating System
OS Version
No response
Processor
System Component
SML/NJ Library
Severity
Minor
Description
The HTML4 lexer does not specify rules for all inputs
Transcript
Expected Behavior
Note that this is what happens when you pass an incomplete tag such as "<x"
Steps to Reproduce
See transcript
Additional Information
The issue is in
html4.l
. There needs to be a case that handles"<"
and"</"
that are not followed by an alpha character or"!--"
.Email address
skyler DOT soss AT gmail.com