Bugzilla – Bug 1010
misreported location of bad character reference in `textarea` and `title`
Last modified: 2015-04-13 02:34:32 CEST
Created attachment 231 [details] test case validating http://websnippets.ru/article.php?id=30 (or the attached static copy of it) results in a good ">" character reference on line 33 getting misreported as bad. The actual bad character reference is "&w3" on line 48. A minimal case that reproduces this problem - <!doctype html><title>test</title>><textarea>&w3</textarea> http://html5.validator.nu/?doc=data%3Atext%2Fhtml%3Bcharset%3Dutf-8%2C%3C%2521doctype%2520html%3E%3Ctitle%3Etest%3C%252Ftitle%3E%2526gt%253B%3Ctextarea%3E%2526w3%3C%252Ftextarea%3E&showsource=yes An even more minimal case that shows what actually might be the root problem: <!doctype html><title>&w3</title> http://html5.validator.nu/?doc=data%3Atext%2Fhtml%3Bcharset%3Dutf-8%2C%3C%2521doctype%2520html%3E%3Ctitle%3E%2526w3%3C%252Ftitle%3E&showsource=yes In that case, the validator fails to report any line+col numbers at all.
Fixed in https://bugzilla.mozilla.org/show_bug.cgi?id=1096172