Re: Void elements in HTML

Julian Reschke wrote:
> Anne van Kesteren wrote:
>  > post-HTML4 is not and will lead to even bigger confusion. (Authors are
>  > already pretty confused that they have write e.g. <textarea></textarea>
>  > rather than <textarea/>. See e.g. the amount of duplicates on
>  > https://bugzilla.mozilla.org/show_bug.cgi?id=162653 Your suggestion
>  > would just make that worse.)
> 
> So how many pages would we break if we actually made "<textarea/>" 
> equivalent to "<textarea></textarea>"?

If I search for the pattern (?i)<textarea[^>]*/> in about 130K pages 
from dmoz.org earlier this year, then all I find is:

http://www.villagevoice.com/issues/0013/boal.shtml -- <textarea 
id="frmComment" name="comment" rows="6" cols="30"/></textarea>

http://www.hockeycanada.ca/ -- partbody += "<textarea id=\"" + qn + "\" 
name=\"" + qn + "\" class=\"survey\" cols=\"" + qwidth + "\" rows=\"" + 
qheight + "\" />" + qa + "<\/textarea>";

http://www.arhitektura.co.yu/ -- <textarea type="text" cols="27" 
class="inputbox" rows="4" name="msg" maxlength="80" onkeypress="return 
handleEnter(this, event)"/></textarea>

Only the second of those would break (and only if qa != ""). So it's not 
a relatively widespread issue in that set of the pages.


http://www.google.com/codesearch?q=%3Ctextarea%5B%5E%3E%5D*%2F%3E finds 
more that would break:

http://www.google.com/codesearch/p?hl=en#XKPvETtl-JY/views/default/canvas/layouts/widgets.php&q=%3Ctextarea%5B%5E%3E%5D*/%3E 
-- <textarea type="textarea" value="Left widgets"   style="display:none" 
name="debugField1" id="debugField1" /><?php echo $leftcolumn_widgets; 
?></textarea>

http://www.google.com/codesearch/p?hl=en#m6yMHImV59o/XoopsCore/releases/2.3.1-rc/htdocs/modules/system/admin/banners/banners.php&q=%3Ctextarea%5B%5E%3E%5D*/%3E 
-- <textarea name='extrainfo' cols='60' rows='10' />$extrainfo</textarea>

http://www.google.com/codesearch/p?hl=en#AAy4znGIMUo/spellcheck/trunk/spellchecker/example.php&q=%3Ctextarea%5B%5E%3E%5D*/%3E 
-- <textarea id="spell_checker2" name="comment2" style="width: 400px; 
height: 150px;" />This text area does not have a spell checker.</textarea>

http://www.google.com/codesearch/p?hl=en#DXnGgsLufFE/releases/RELEASE-0-993/unstable/admin/navigator.php&q=%3Ctextarea%5B%5E%3E%5D*/%3E%5B%5E%3C%5D 
-- <textarea name='$name' $extras />$value</textarea>

and at least dozens more.

-- 
Philip Taylor
pjt47@cam.ac.uk

Received on Wednesday, 31 December 2008 14:33:17 UTC