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 :

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

Regards, Jonathan.
website: http://www.jouer-gratuit.net
email: windows-world@wanadoo.fr
Received on Friday, 30 June 2006 13:01:28 UTC

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