[whatwg] readystatechange for SCRIPT (Re: Feedback regarding script execution)
Ian Hickson
ian at hixie.ch
Thu Sep 8 14:55:13 PDT 2011
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. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg
mailing list