W3C home > Mailing lists > Public > public-webapi@w3.org > February 2006

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

From: Maciej Stachowiak <mjs@apple.com>
Date: Sat, 11 Feb 2006 17:58:47 -0800
Message-Id: <04E92259-2E37-4E59-91B4-06B557DEDCBD@apple.com>
Cc: public-webapi@w3.org
To: Maciej Stachowiak <mjs@apple.com>


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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:53 GMT