W3C home > Mailing lists > Public > www-validator@w3.org > September 2003

Re: [BUG?] wrong column number

From: Nick Kew <nick@webthing.com>
Date: Tue, 30 Sep 2003 21:11:54 +0100 (BST)
To: Paul Arzul <patricka@mkdoc.com>
Cc: <www-validator@w3.org>
Message-ID: <20030930210519.P1113-100000@fenris.webthing.com>


On Tue, 30 Sep 2003, Paul Arzul wrote:

> <p>
> 1234567890123
> 123<typo>0123
> 1234567890123
> </p>
>
> the validator lists the problem at column 8, while the column indicator
> (the caret ^) indicates column 9.

That's correct, as far as it goes.  The parser doesn't know it's not a
valid element until it hits the end of it at column 9.

The real issue is that line/column isn't really a good pointer into
markup.  Highlighting the entire "<typo>" tag would make more sense.
If it bothers you, you might find "visual" mode at
http://valet.webthing,com/page/ preferable.

> for comparison, the wdg's[1] caret indicator and column number are in
> agreement on column 9.

It uses the same parser.  But other parsers will generate the same result
when expressed as line/column.

-- 
Nick Kew

In urgent need of paying work - see http://www.webthing.com/~nick/cv.html
Received on Tuesday, 30 September 2003 17:05:31 GMT

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