W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 1999

Fw: Uninitialized attribute values? [final]

From: Andy Quick <ac.quick@sympatico.ca>
Date: Sat, 12 Jun 1999 15:27:00 -0400
Message-ID: <000f01beb509$8bac2380$85fbacce@quick>
To: <html-tidy@w3.org>
Dave,

With regards to this report, I compiled tidy with WATCOM C and still found that uninitialized data was still being printed for empty attribute values in these cases.  I gather from your code that you used MS C 4.2 for the Windows platform.  These are two solid C compilers, so I doubt that it is
a compiler bug.  Yet, I can't reproduce the behaviour on the Unix version of tidy.  All I can suggest is that there is some non-portable C dependency in tidy that results in uninitialized data being accessed
for attribute values in some cases.  The test cases I sent should be useful for diagnosing the problem on the Windows platform.

Andy Quick


-----Original Message-----
From: Andy Quick <ac.quick@sympatico.ca>
To: html-tidy@w3.org <html-tidy@w3.org>
Date: June 11, 1999 8:57 AM
Subject: Fw: Uninitialized attribute values?


Upon further investigation, I have concluded that these are actually compiler bugs with your Win9x/NT C compiler (gcc?).  The C Tidy compiled with gcc on Unix, as well as Java Tidy, give the correct results.  I presume you are using Unix for your Tidy development.  I will try compiling Tidy for Windows with WATCOM C, and see if the problems go away.
 
- Andy

-----Original Message-----
From: Andy Quick <ac.quick@sympatico.ca>
To: html-tidy@w3.org <html-tidy@w3.org>
Date: June 8, 1999 10:44 PM
Subject: Uninitialized attribute values?


Dave,
 
I'm in the process of testing my Java version of Tidy on some public web pages.  I'm seeing some indescribably bad HTML documents, so, as I see it,  their is a great need for Tidy :-)
 
Anyway, I've noticed that the official Tidy seems to generate bogus attribute values in some cases.  It seems to be in cases where the attribute value is missing in invalid elements.  Java Tidy outputs "" for the missing attribute values.  My guess is that Tidy is printing uninitialized data for these values.  Since I have enough other bugs in Java Tidy to solve, I thought I would pass this one along to you.
 
Attached are 2 test HTML documents.  To reproduce the problems, run tidy and look at the values for the following attributes: "width" in test1.html, "font" and "br" in test2.html.
 
Andy Quick
Received on Saturday, 12 June 1999 15:27:52 GMT

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