Re: [DOM3 Events]: boolean readonly attributes as methods

On Feb 11, 2006, at 5:32 PM, Maciej Stachowiak wrote:

>
>
> The following bool-returning methods on Event should be readonly  
> attributes instead:
>
>   // Introduced in DOM Level 3:
>   boolean            isCustom();
>   // Introduced in DOM Level 3:
>   boolean            isDefaultPrevented();
>
> Since these methods take no parameters and are side-effect free,  
> they should be readonly attributes instead.

I noticed that this also applies to the following CustomEvent methods:

isPropagationStopped()
isImmediatePropagationStopped()

Regards,
Maciej

Received on Sunday, 12 February 2006 01:58:47 UTC