[whatwg] Mechanism to find available events

On Mon, Sep 20, 2010 at 11:37 PM, Jonas Sicking <jonas at sicking.cc> wrote:
>
> if (onhashchange in document.body) {
> ?...
> }

assuming
    if ('onhashchange' in document.body) {

That should solve one issue, but Firefox is not doing that for all events,

example:-  'onbeforeunload' in window ===> gives false

also there is no way to discover the all the available events for a node.

Received on Monday, 20 September 2010 20:50:07 UTC