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

how to prevent tidy from dropping <option> tags with empty bodies

From: bruce draper <bruce@talisentech.com>
Date: Fri, 23 Jun 2006 15:33:41 -0500
Message-ID: <17564.20517.194313.185327@oldblazin.talisentech.com>
To: html-tidy@w3.org

i am using tidy released on 1 sept 2005 with the default config.

i have html with select lists containing <option> tags with empty bodies.
for example, as in the following html snippet

<html>
<body>
<br>
select a value: <select name="test0">
<option value="" selected></option>
<option value="one">1</option>
<option value="two">2</option>
</select>
<br>
</body>
</html>


what i see is tidy removing ("trimming") my empty <option> tag with the
following warning:

line 5 column 1 - Warning: trimming empty <option>


can i disable that action using the tidy config since i would like to keep
my empty options?  if yes, how?

thanks.



bruce draper
Received on Saturday, 24 June 2006 02:14:10 GMT

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