[whatwg] Preventing nested click() calls

Erik Arvidsson erik.arvidsson at gmail.com
Fri Mar 14 11:04:19 PDT 2008


To me it just seems wrong to prevent this.  This is in theory no
different than a recursive call and just like recursion it can end up
in an infinite loop.  Having a limit seems OK since most JavaScript
engines already have a limit on the size of the call stack.

On Mon, Mar 10, 2008 at 11:54, Anne van Kesteren <annevk at opera.com> wrote:
> On Mon, 10 Mar 2008 19:49:21 +0100, Antti Koivisto <antti at apple.com> wrote:
>
> > WebKit, Firefox and IE all implement a protection mechanism against
> re-entering click() on the same element:
> >
> > <input type="checkbox" onclick="this.click()">
> >
>
>  Opera had the same restriction. We now limit it at 50 or so... I think
> we're fine either way though.
>
>
>  --
>  Anne van Kesteren
>  <http://annevankesteren.nl/>
>  <http://www.opera.com/>
>



-- 
erik



More information about the whatwg mailing list