Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.javascript Subject: Re: element content change Date: Thu, 07 Aug 2014 00:54:10 +0200 Organization: solani.org Lines: 30 Message-ID: References: <87y4v2qtia.fsf@bsb.me.uk> <87ppgdo1di.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1407365645 24651 eJwFwQcBwEAIBDBLrGPIKQX8S/gE6ux/mMMNhwuR7B6a2I8Tt62Up6WyFeN8Z+qxXUaboH4fxxEQ (6 Aug 2014 22:54:05 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Wed, 6 Aug 2014 22:54:05 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 X-User-ID: eJwNyskBwCAIBMCW5FpMOSBu/yWYeU8YBCcdAQ8Gyw8/jS6h3AybXgrLkU4M/3yVuyvbFqm7HyZmEYg= In-Reply-To: <87ppgdo1di.fsf@bsb.me.uk> Cancel-Lock: sha1:gcDLnd0nhbIdvlGiMEzE5zdJWQw= X-NNTP-Posting-Host: eJwFwQcBADAIAzBNZRSww/UvYQmfwdrVaMrjVYPhUG3P6Khjo1cOhzeQxTJSajxXYBMfJRARhg== Xref: csiph.com comp.lang.javascript:25648 Ben Bacarisse wrote: > "Christoph M. Becker" writes: > >> ACK. Or maybe better: >> >>
> > That looks logically wrong to me -- a label should not include the thing > it labels. My only back-up is the examples in[1], which all show the > control outside, with the label element containing just, well, the > label. I have to admit that this construct is counter-intuitive, and might be even regarded as illogical. However, in practise it often saves some further markup, especially the ID (which is quite convenient, if the markup is generated), and maybe a surrounding "block-level" element. >> as Yukka already suggested. > > He seemed to be making a different point, though always including some > text in the label was part of it. Yes, you're right. I've read Yukka's post to fast. > [1] http://www.w3.org/TR/html401/interact/forms.html#edef-LABEL -- Christoph M. Becker