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

Hi Bruce,

If you want to place an empty body , you can use the character "&nbsp;".
This charater is egal to a "space" character, and looks like empty as you want.

That gives :

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

Regards, Jonathan.
-------------------------------
website: http://www.jouer-gratuit.net
email: windows-world@wanadoo.fr

Received on Friday, 30 June 2006 13:01:28 UTC