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

[DOM3 Events]: boolean readonly attributes as methods

From: Maciej Stachowiak <mjs@apple.com>
Date: Sat, 11 Feb 2006 17:32:21 -0800
Message-Id: <189116AF-87DB-4ED8-BD7F-14A878897162@apple.com>
To: public-webapi@w3.org

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.

Received on Sunday, 12 February 2006 01:32:36 GMT

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