how to prevent tidy from dropping <option> tags with empty bodies
bruce draper <[email protected]>
| Newsgroups | gmane.comp.web.html-tidy.user |
|---|---|
| Message-ID | <[email protected]> |
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