W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2010

Re: Partial review of DOM 3 Events

From: Simon Pieters <simonp@opera.com>
Date: Wed, 06 Oct 2010 20:02:38 +0200
To: "Olli Pettay" <Olli.Pettay@helsinki.fi>, Olli@pettay.fi
Cc: "www-dom@w3.org" <www-dom@w3.org>
Message-ID: <op.vj51qob7idj3kv@simon-pieterss-macbook.local>
On Wed, 06 Oct 2010 19:57:40 +0200, Olli Pettay <Olli.Pettay@helsinki.fi>  
wrote:

> On 09/10/2010 12:58 PM, Simon Pieters wrote:
>> Here's a partial review of DOM 3 Events
>> http://www.w3.org/TR/2010/WD-DOM-Level-3-Events-20100907/
>>
>>
>> What's the use case for extended feature strings for event types
>> (hasFeature('Events.click', ''))? Opera, WebKit and Gecko don't support
>> this. [1]
>
> Use case is to detect whether the browser claims to dispatch such
> (trusted) events.

Why would you want to detect that? How can you be sure that what the  
browser claims is true?

> Currently
>      if (element.onfoo) { ... }
> is occasionally used for detecting support for some events, but that  
> doesn't really work since not all events have onfoo event listeners.

Have you considered adding onfoo listeners for all events?

> (And note, DOM 3 Events isn't just trying to document what is currently
>   supported.)

-- 
Simon Pieters
Opera Software
Received on Wednesday, 6 October 2010 18:03:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:06 GMT