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

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

From: Windows-world <windows-world@wanadoo.fr>
Date: Fri, 30 Jun 2006 14:59:35 +0200
Message-ID: <000501c69c45$0b9c7fc0$0d01a8c0@sy4punf14>
To: <html-tidy@w3.org>
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 GMT

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