W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2000

(unknown charset) Re: [BUG] Warning column numbers incorrect

From: (unknown charset) Dave Raggett <dsr@w3.org>
Date: Tue, 28 Mar 2000 18:30:24 +0100 (GMT Daylight Time)
To: (unknown charset) "J. David Bryan" <jdbryan@acm.org>
cc: (unknown charset) HTML Tidy List <html-tidy@w3.org>
Message-ID: <Pine.WNT.4.10.10003281829310.-462379@hazel.hpl.hp.com>
On Fri, 24 Mar 2000, J. David Bryan wrote:

> The column numbers reported by Tidy in warnings for unknown
> attributes are incorrect.  For example, the following HTML:
> 
>   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
>   <html>
>   <title>Column bugs</title>>   <body>
>   <p bogus="X" yoohoo="Y">Some text</p>>   </html>
> 
> reports these warnings:
> 
>   line 6 column 1 - Warning: unknown attribute "yoohoo"
>   line 6 column 1 - Warning: unknown attribute "bogus"
> 
> However, the column numbers should be 14 and 4, respectively.  
> I presume but have not verified that "lexer->columns" is not
> being updated as attributes are parsed in "lexer.c".

Yes, this is a known limitation and something that should be
fixed.

Many thanks,

-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
tel/fax: +44 122 578 3011 (or 2521) +44 385 320 444 (mobile)
World Wide Web Consortium (on assignment from HP Labs)
Received on Tuesday, 28 March 2000 12:30:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:43 GMT