On Sun, 23 Jul 2006, Boris Zbarsky wrote: > > Consider the following testcase: > > <!DOCTYPE html> > <a href="http://www.example.com" onclick="return 0">Click me</a> > > Should clicking the link load www.example.com?
Yes. > That is, does the return value of the onclick handler cancel the event > if it's == to false, or only if it's === to false? > > In shipping Geckos it only cancels if the return value === false; I > suspect other browsers behave similarly but it could use testing. Yup. I fixed the spec to clarify this. Thanks! -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
