- From: Chuck Durfee <cdurfee@emass.com>
- Date: Wed, 6 Oct 1999 12:37:55 -0600
- To: html-tidy@w3.org
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?
Thanks,
Chuck
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Chuck Durfee (chuck.durfee@adic.com) desk: +1 303 705 3888
Software Support Engineer ATAC: 800 827 3822
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Received on Wednesday, 6 October 1999 14:37:58 UTC