W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2004

[whatwg] LABEL and radio/checkbox onclick

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 26 Aug 2004 13:17:01 +0000 (UTC)
Message-ID: <Pine.LNX.4.61.0408261315540.21191@dhalsim.dreamhost.com>
On Wed, 18 Aug 2004, Matthew Thomas wrote:
> On 18 Aug, 2004, at 10:30 AM, Ian Hickson wrote:
> > On Mon, 19 Jul 2004, Matthew Thomas wrote:
> > > 
> > > ... Internet Explorer and Netscape 4 do not add the value of any 
> > > particular submit button to a GET URI if the Enter key is pressed, 
> > > but Opera and Gecko browsers arbitrarily choose the first submit 
> > > button in the form.
> > 
> > I just added a paragraph to the spec that makes the Opera/Gecko 
> > behaviour correct:
> 
> The Opera/Gecko behavior was already correct per spec (as far as I 
> know), since exact behavior was undefined. Why does it need to be 
> defined?
> 
> It wouldn't make life any easier for authors. They would still have to 
> handle the no-submit case, for the same reasons they have to handle 
> invalid dates and all the rest -- to cater for non-WF2 clients (and for 
> defective/malicious submittors).
> 
> Nor would it make life any easier for UA implementors. It would just 
> give them fewer choices about how to design their code.

Fewer choices makes things easier for implementors.


> So why make it a requirement?

Undefined behaviour is bad. It makes it hard to get interoperability. On 
matters like this, IMHO interoperability is very important.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 26 August 2004 06:17:01 UTC

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