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

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

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?


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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:56 UTC