HTML Tidy 4aug00 crashes on solaris

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 UTC