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

[BUG] Warning column numbers incorrect

From: J. David Bryan <jdbryan@acm.org>
Date: Sat, 5 Feb 2000 02:01:35 -0500
Message-Id: <200002050701.CAA12858@mail.bcpl.net>
To: HTML Tidy List <html-tidy@w3.org>
This report is for the Tidy version of 13th January 2000.

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>
  </head>
  <body>
  <p bogus="X" yoohoo="Y">Some text</p>
  </body>
  </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".

                                      -- Dave
Received on Saturday, 5 February 2000 02:01:38 GMT

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