Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #15688

Re: radio buttons with. checkbox

Message-ID <1707593.N75dt4Fg3R@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2012-09-04 13:44 +0200
Subject Re: radio buttons with. checkbox
Newsgroups comp.lang.javascript
References <k0o75t$iac$1@speranza.aioe.org> <2760364.jIkiNM8doB@PointedEars.de> <844fb2cd-8362-4716-82a9-0f6bc509f47e@o8g2000yqm.googlegroups.com>
Followup-To comp.lang.javascript

Followups directed to: comp.lang.javascript

Show all headers | View raw


David Mark wrote:

> Thomas 'PointedEars' Lahn wrote:
>> emf wrote:
>> ^^^
>> Who?
> 
> I think that's the name of a one-hit-wonder pop band from the early
> 90's. Guess they are back (and programming JS!) :)

:)

>> > […]
>> > <label for="rads" style="padding-right:1em;">
>> > <input type="radio" name="formats"
>> > onClick="inputOutput(0)";> Radians
>> > </label>
>> > <label for="degr" style="padding-right:1em;">
>> > <input type="radio" name="formats"
>> > onClick="inputOutput(1)"; checked> Degrees
>> > </label>
>> > <label for="dgmn2" style="padding-right:1em;">
>> > <input type="checkbox" name="dgmn"
>> > onClick="inputOutput(2)"> deg°min'
>> > </label>
>> > ...
>>
>> Your LABEL elements do not work (clicking them does not focus the
>> control) in Chromium 21.0.1180.75 Built on Debian wheezy/sid, running on
>> Debian 6.0.5 (150248), and most certainly other browsers, because you
>> have not specified the `rads' aso. IDs on the corresponding form
>> controls.  With this approach, you need to omit the `for' attribute on
>> the LABEL elements.
> 
> For as long as I can remember, Chrome has failed to focus checkboxes
> and radio buttons on clicking their labels

Confirmed.  Using the key defined in the `accesskey' attribute value moves 
the input focus to the control, though.  You should report that as a bug if 
not reported already.

However, what I meant was that the LABEL elements do not *trigger* the 
control, which they could if the markup was Valid.  This is not limited to 
Chromium or Chrome.

> (or even on clicking the controls themselves!) Have always had to account
> for this with script (which really sucks).
> 
> Of course, in the case above, I'm sure it fails to activate the
> controls as well. As mentioned, that failure is on the developer.

It is also on the user and the savvy developer who, observing a flaw, do not 
report it or submit a patch for it, respectively (see [0]).  After all, 
improvement of open-source software, and free software in particular, 
depends on individual initiative.  Chromium, on which the Chromium Browser 
and Google Chrome are based, is released under a variety of open-source 
licenses [1].  The Google-authored part of Chromium is released under the 
Modified BSD License [2], a permissive, GPL-compatible free software license 
[3].


PointedEars
___________
[0] <http://www.chromium.org/for-testers/bug-reporting-guidelines>
[1] <http://en.wikipedia.org/wiki/Chromium_(web_browser)#Licensing>
[2] <http://src.chromium.org/viewvc/chrome/trunk/src/LICENSE?view=markup>
[3] <http://www.gnu.org/licenses/license-list.html#ModifiedBSD>
-- 
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
  -- Richard Cornford, cljs, <f806at$ail$1$8300dec7@news.demon.co.uk>

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

radio buttons with. checkbox emf <emfril@gmail.com> - 2012-08-18 10:03 -0400
  Re: radio buttons with. checkbox SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-08-18 17:36 +0200
    Re: radio buttons with. checkbox emf <emfril@gmail.com> - 2012-08-19 09:30 -0400
      Re: radio buttons with. checkbox emf <emfril@gmail.com> - 2012-08-19 12:11 -0400
        Re: radio buttons with. checkbox SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-08-20 14:00 +0200
          Re: radio buttons with. checkbox emf <emfril@gmail.com> - 2012-08-20 09:05 -0400
            Re: radio buttons with. checkbox SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-08-20 16:11 +0200
              Re: radio buttons with. checkbox emf <emfril@gmail.com> - 2012-08-21 05:25 -0400
                Re: radio buttons with. checkbox Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-08-21 14:36 +0200
                Re: radio buttons with. checkbox SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-08-22 12:24 +0200
      Re: radio buttons with. checkbox SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-08-20 12:13 +0200
      Re: radio buttons with. checkbox Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-08-20 16:27 +0200
        Re: radio buttons with. checkbox SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-08-20 21:58 +0200
        Re: radio buttons with. checkbox emf <emfril@gmail.com> - 2012-08-21 10:58 -0400
          Re: radio buttons with. checkbox Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-08-22 10:41 +0200
          Re: radio buttons with. checkbox "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-08-22 10:14 +0000
          Re: radio buttons with. checkbox SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-08-22 14:31 +0200
  Re: radio buttons with. checkbox Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-08-18 19:18 +0200
    Re: radio buttons with. checkbox emf <emfril@gmail.com> - 2012-08-20 08:29 -0400
      Re: radio buttons with. checkbox Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-08-20 16:25 +0200
        Re: radio buttons with. checkbox emf <emfril@gmail.com> - 2012-08-21 06:06 -0400
          Re: radio buttons with. checkbox Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-08-21 14:33 +0200
            Re: radio buttons with. checkbox emf <emfril@gmail.com> - 2012-08-21 10:51 -0400
              Re: radio buttons with. checkbox Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-08-22 11:42 +0200
              Re: radio buttons with. checkbox SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-08-22 14:27 +0200
            Re: radio buttons with. checkbox Dr J R Stockton <reply1234@merlyn.demon.co.uk.invalid> - 2012-08-22 20:24 +0100
              Re: radio buttons with. checkbox Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-08-23 11:06 +0200
                Re: radio buttons with. checkbox Dr J R Stockton <reply1234@merlyn.demon.co.uk.invalid> - 2012-08-25 17:01 +0100
          Re: radio buttons with. checkbox Dr J R Stockton <reply1234@merlyn.demon.co.uk.invalid> - 2012-08-22 19:58 +0100
        Re: radio buttons with. checkbox emf <emfril@gmail.com> - 2012-08-22 02:20 -0400
          Re: radio buttons with. checkbox Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-08-22 10:44 +0200
          Re: radio buttons with. checkbox SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-08-22 14:40 +0200
            Re: radio buttons with. checkbox emf <emfril@gmail.com> - 2012-08-26 00:16 -0400
            Re: radio buttons with. checkbox emf <emfril@gmail.com> - 2012-09-03 07:19 -0400
    Re: radio buttons with. checkbox David Mark <dmark.cinsoft@gmail.com> - 2012-09-03 21:02 -0700
      Re: radio buttons with. checkbox Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-04 13:44 +0200
        Re: radio buttons with. checkbox David Mark <dmark.cinsoft@gmail.com> - 2012-09-04 06:00 -0700

csiph-web