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

"Windows-world" <[email protected]>
Newsgroups gmane.comp.web.html-tidy.user
Message-ID <000501c69c45$0b9c7fc0$0d01a8c0@sy4punf14>
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: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.