[whatwg] LABEL and radio/checkbox onclick

Ian Hickson ian at hixie.ch
Thu Aug 26 06:17:01 PDT 2004


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list