- From: Terry Teague <teague@mailandnews.com>
- Date: Wed, 6 Oct 1999 23:42:01 -0700
- To: html-tidy@w3.org
At 12:37 PM -0600 10/6/99, Chuck Durfee wrote: >Greetings, everybody! > >I've discovered what I believe to be a bug in Tidy ver 27 Sep 1999. > >Here is a sample HTML file: > ><HTML> ><HEAD><TITLE>Form</TITLE></HEAD> ><BODY> ><FORM ACTION="http://path/to/cgi/script" METHOD="post"> ><P>Boolean: <SELECT NAME="boolean"> ><OPTION> AND </OPTION> ><OPTION> OR </OPTION> ></SELECT> ></FORM> ></BODY> ></HTML> > >Tidy generates the following output on my Indigo2 IRIX workstation: > >Tidy (vers 27th September 1999) Parsing "bug.html" >line 10 column 23 - Warning: discarding unexpected plain text >line 10 column 28 - Warning: discarding unexpected </option> >line 12 column 23 - Warning: discarding unexpected plain text >line 12 column 27 - Warning: discarding unexpected </option> > >"bug.html" appears to be HTML 2.0 >4 warnings/errors were found! > ><!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN"> ><HTML> > <HEAD> > <TITLE>Form</TITLE> > </HEAD> > > <BODY> > <FORM ACTION="http://path/to/cgi/script" METHOD="post"> > <P>Boolean: <SELECT NAME="boolean"> > <OPTION> > </OPTION> > > <OPTION> > </OPTION> > </SELECT></P> > </FORM> > </BODY> ></HTML> > >Why does it destroy the option text? The 26 July release did not have this >problem: > >Tidy (vers 26th July 1999) Parsing "bug.html" > >"bug.html" appears to be HTML 2.0 >no warnings or errors were found > >[snip] > <P>Boolean: <SELECT NAME="boolean"> > <OPTION> > AND > </OPTION> > > <OPTION> > OR > </OPTION> > </SELECT></P> >[snip] > >Incidentally, anybody know why Tidy validates my sample bug.html as HTML >2.0, when all the elements are 4.0 compliant? FWIW, although Chuck probably used different configuration settings than I did, I can confirm that I got basically the same results as Chuck, with the Mac OS version of Tidy based on the 27 Sep 99 sources. Regards, Terry
Received on Thursday, 7 October 1999 02:43:06 UTC