W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2006

[whatwg] WF2: Clarification on valueMissing requested

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 26 Sep 2006 04:23:25 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0609260358520.4336@dhalsim.dreamhost.com>
On Wed, 20 Sep 2006, Alex Vincent wrote:
>
> "The field has the required  attribute set but has no value selected."
> 
> In implementing this for Mozilla, I realized an edge case that could
> prove troublesome.  Specifically, what happens if you have multiple
> radio or checkboxes with the required attribute and no boxes checked
> for any of them.
> 
> Alternatively, consider when the radio button is checked but doesn't
> have a value... and some other radio input with the same name in the
> same form does have a value.
> 
> There's an attempt to clarify it here:
> 
> "When a radio group has no checked radio button and more than one of
> the radio buttons is marked as required, the UA should only tell the
> user that the radio group as a whole is missing a value, not complain
> about each radio button in turn, even though all of the radio buttons
> marked with the required attribute would have the valueMissing flag
> set."
> 
> Tell the user how?  Visually?  Through DOM events?  Both, or some
> other way?  I'm working from the DOM events view right now, and this
> could be the difference between dispatching one event and dispatching
> many.

Clarified.

Let me know if that doesn't help.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 25 September 2006 21:23:25 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:48 UTC