mathiasbynens / he

A robust HTML entity encoder/decoder written in JavaScript.
https://mths.be/he
MIT License
3.45k stars 254 forks source link

Make `&aaa;` a parse error #46

Open mathiasbynens opened 8 years ago

mathiasbynens commented 8 years ago

See https://github.com/whatwg/html/issues/1257:

&aaa; or <p title="&ampersand;"> should be parse errors

RReverser commented 8 years ago

It appears it already is an error in strict mode for he.