W3C home > Mailing lists > Public > public-html@w3.org > December 2008

Re: Void elements in HTML

From: Philip Taylor <pjt47@cam.ac.uk>
Date: Wed, 31 Dec 2008 14:32:12 +0000
Message-ID: <495B826C.8020508@cam.ac.uk>
To: Julian Reschke <julian.reschke@gmx.de>
CC: Anne van Kesteren <annevk@opera.com>, Ian Hickson <ian@hixie.ch>, public-html@w3.org

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:

-- <textarea type="textarea" value="Left widgets"   style="display:none" 
name="debugField1" id="debugField1" /><?php echo $leftcolumn_widgets; 

-- <textarea name='extrainfo' cols='60' rows='10' />$extrainfo</textarea>

-- <textarea id="spell_checker2" name="comment2" style="width: 400px; 
height: 150px;" />This text area does not have a spell checker.</textarea>

-- <textarea name='$name' $extras />$value</textarea>

and at least dozens more.

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

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:40 UTC