I take some of what I said back.
It appears that most of the DOM2 Events noted below are available also
from web contents. See
http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html#Events-MutationEvent
for the spec.
The following event handlers are only available from XUL:
*******************************************************************
onpopupshowing, onpopupshown, onpopuphiding, opopuphidden, onclose,
oncommand, onbroadcast, oncommandupdate.
The following event handlers are available from everywhere AND are
implemented:
*******************************************************************
ondblclick, oninput, onoverflow, onunderflow, onoverflowchanged,
ondragenter, ondragover, ondragexit, ondragdrop, ondraggesture,
onDOMNodeInserted, onDOMNodeRemoved, onDOMNodeInsertedIntoDocument,
onDOMNodeRemovedFromDocument, onDOMAttrModified, onDOMCharacterDataModified.
The following event handlers are available from everywhere AND are NOT
implemented:
*******************************************************************
onDOMSubtreeModified (bug 74218), onDOMNodeInsertedIntoDocument (bug
74219), onDOMNodeRemovedFromDocument (bug 74220)
-Fabian.
Fabian Guisset wrote:
> Here's some more I found when looking at the code, this time about
> events of the window object:
>
> We unfortunately have to distinguish between the events available from
> the DOM0 (i.e. those set using window.eventName), and those available
> from the DOM2 Events (i.e. those set using addEventListener).
> There are also some events available only from the chrome, and some only
> available for html.
>
> Here is the list of events that can be set using window.eventName:
> onabort, onblur, onchange, onclick, oncontextmenu, onerror, onfocus,
> onkeydown, onkeypress, onkeyup, onload, onmousedown, onmousemove,
> onmouseout, onmouseover, onmouseup, onpaint, onreset, onresize,
> onscroll, onselect, onsubmit.
>
> The only differences I see with the current reference is:
> onclose and ondragdrop are not allowed
> oncontextmenu is allowed but currently not in the reference
>
> The list of events available from DOM2 Events can be found at
>
>http://lxr.mozilla.org/seamonkey/source/content/events/src/nsEventListenerManager.cpp#537
>
>
> It includes all the above-mentioned events, plus
> ondblclick, oninput, onclose, oncommand, onpopupshowing, onpopupshown,
> onpopuphiding, onpopuphidden, onbroadcast, oncommandupdate, onoverflow,
> onunderflow, onoverflowchanged, ondragenter, ondragover, ondragexit,
> ondragdrop, ondraggesture, onDOMSubtreeModified, onDOMNodeInserted,
> onDOMNodeRemoved, onDOMNodeInsertedIntoDocument,
> onDOMNodeRemovedFromDocument, onDOMAttrModified,
> onDOMCharacterDataModified.
>
> Note that most of those, if not all, are available only from the chrome.
> (I'll try to find the exact list)
>
> I'm not sure it's worth documenting those available only from the chrome.
>
> -Fabian.
>