W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2000

HTML Tidy 4aug00 crashes on solaris

From: Ian Holsman <ianholsman@iname.com>
Date: Fri, 3 Nov 2000 20:47:22 -0500 (EST)
Message-ID: <3A036AA4.1040909@iname.com>
To: html-tidy@w3.org
the URL in question is http://www.cnetinvestor.com (attached)
the line (48) in question which crashes it is:

<spanstyle="color:#FFCC00">

in localise.c 216 .. where is doesn't check if attr is null

my fix is the following

  else if (code == BAD_ATTRIBUTE_VALUE)
       {
           tidy_out(lexer->errout, "Warning: ");
           ReportTag(lexer, node);
           if (attr)
             tidy_out(lexer->errout, " unknown attribute value \"%s\"", 
attr);
           else
             tidy_out(lexer->errout, " unknown attribute value 
\"(null)\"" );
       }

which is a kludge .. but does the job (for now)
..Ian


Received on Friday, 3 November 2000 23:45:55 GMT

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