W3C home > Mailing lists > Public > www-validator@w3.org > May 2011

Re: Reporting line number is inaccurate

From: Ville Skyttä <ville.skytta@iki.fi>
Date: Sat, 21 May 2011 12:55:22 +0300
Message-ID: <4DD78C0A.8090107@iki.fi>
To: www-validator@w3.org
On 05/09/2011 08:43 PM, Brett Alton wrote:
> When I have an error, the validator reports as "Line 26, column 8: end
> tag for "ul" omitted, but OMITTAG NO was specified".
> 
> This is fine, but my error is not on line 26.
> 
> When I click 'view source' through your validator, I see that it
> removes all the whitespace in the <head></head> and squeezes it all on
> line 1. If it didn't do that, the line number, when looking at the
> 'view source' in my browser (or in my text editor if it's a static
> html page) actually has a line number of "Line 114, column 9".
> 
> Should the line number not reflect the original source code and not
> the stripped whitespace source code?

It should reflect the source of the document actually validated.  I'm
not aware of a case where validator would behave as you describe above;
for further investigation we'll need a link to a document with which
this behavior can be reproduced.
Received on Saturday, 21 May 2011 09:55:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:46 GMT