NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 1010 - misreported location of bad character reference in `textarea` and `title`
misreported location of bad character reference in `textarea` and `title`
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 normal
Assigned To: Nobody
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-10 04:15 CET by Michael[tm] Smith
Modified: 2015-04-13 02:34 CEST (History)
0 users

See Also:


Attachments
test case (8.18 KB, text/html)
2014-11-10 04:15 CET, Michael[tm] Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael[tm] Smith 2014-11-10 04:15:57 CET
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>&gt;<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.
Comment 1 Michael[tm] Smith 2015-04-13 02:34:32 CEST
Fixed in https://bugzilla.mozilla.org/show_bug.cgi?id=1096172