W3C home > Mailing lists > Public > www-validator-css@w3.org > April 2006

Re: Line numbers for errors...

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Sat, 15 Apr 2006 15:31:17 +0300 (EEST)
To: Dan Hopper <danwh@earthlink.net>
cc: www-validator-css@w3.org
Message-ID: <Pine.GSO.4.64.0604151523120.22621@korppi.cs.tut.fi>

On Fri, 14 Apr 2006, Dan Hopper wrote:

> It's nice that the validator tells me which line of my code has an error -
> however - How do I correlate those line numbers with my actual code?

Preferably by using an editing tool that shows line numbers or lets you 
move to a line by its number. Failing this, you can use the validator's 
Extended Interface and request for source code listing.

> Would be nice if your validator provided line numbers with the code list
> that it offers at the end of the error list.

Well, it does, when source listing is requested.

> They don't match up...

Can you specify a particular mismatch you have observed?

I bet this is a matter of mismatch between what you regard as "source", 
e.g. PHP file, and what validators and browsers and search engines regard 
as "source", namely the HTML document sent by the server. There is no way 
a validator (or a browser) could relate the HTML source to (e.g.) the PHP 
file, since the latter is completely invisible to it.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Saturday, 15 April 2006 12:31:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:16 GMT