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:59:21 +0200 Organization: solani.org Lines: 19 Message-ID: References: <87y4v2qtia.fsf@bsb.me.uk> <87ppgdo1di.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1407365956 25790 eJwNy8EBwCAIA8CVQCCl40g0+4/Q3v8q4OCTKGSpdHFbdNwcE9rCtLnZMUPDmRe+VCvVxPnvBzHFEY0= (6 Aug 2014 22:59:16 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Wed, 6 Aug 2014 22:59:16 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 X-User-ID: eJwFwYEBwCAIA7CXZKWg50wo/59gQoRFpQfDORxDoFviT+VOTJnn0txVfvGlNTRnl4AYHD0jnRFt In-Reply-To: Cancel-Lock: sha1:CveDae2h18ADMv2Q7JaWh1y3T5g= X-NNTP-Posting-Host: eJwFwYENwDAIA7CXQE0CPaca5P8TZvMo9RVEgaajEPdtKman8iVR6ChrEHt5DWY3PYz1wQ8F+xBQ Xref: csiph.com comp.lang.javascript:25649 Jukka K. Korpela wrote: > > > So this is a valid way, and kept valid in HTML5, but not a logical way. > There is the practical impact that some old browsers do not support this > way (clicking on the label text does not focus on the control) but they > support the more logical way. Which browsers are you referring to? The oldest browser I'm aware of that is still in somewhat widespread use is IE 6, and that does properly handle this construct (at least in standards mode--I'm not concerned with quirks mode). -- Christoph M. Becker