Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of "ambiguous ampersands" to report error when expected
Fixes #82 44427c0 broke handling of "ambiguous ampersands" for the case where we've already examined enough of string after the ampersand to conclude that the substring we have so far doesn't match the beginning of any known named character reference. This change re-conforms the error-reporting for that case to the requirements in the HTML spec. Otherwise, without this change, no error is reported as expected in many or most cases where an ampersand doesn't actually start a character reference.
- Loading branch information