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.


Reply via email to