W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2011

[whatwg] readystatechange for SCRIPT (Re: Feedback regarding script execution)

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 8 Sep 2011 21:55:13 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1109082151400.7754@ps20323.dreamhostps.com>
On Thu, 8 Sep 2011, Simon Pieters wrote:
> 
> For implementors, yes, but it's not really helpful for authors. For 
> authors it would be more helpful to be able to detect if an event is 
> supported on a particular element (or document or window) by checking if 
> the event handler is supported. Currently if we introduce a new event on 
> an element that has the same name as an event used elsewhere, authors 
> can't feature detect support for the new event.

Detecting whether certain events fire on certain elements in certain 
situations by checking whether those elements have corresponding event 
handler attributes isn't a sound strategy anyway, especially considering 
things like bubbling events, author-dispatched events, events being fired 
in subtly different situations (e.g. "input" events on <input> get fired 
in more cases now than they used to be), etc.

If there are specific events that need better feature-detection, we should 
look at those on a case-by-case basis.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 8 September 2011 14:55:13 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:36 UTC