Numerous clarifications to the interfaces and event types have been made. The
HTMLEvents module is no longer defined in this document. The event types
blur have been added to the
UIEvents module. For changes to the introduction of namespaces see Compatibility with DOM Level 2 Events.
DocumentEvent.createEvent(). Applications can no longer create their own Event objects and have them dispatched by the DOM implementation. The interface members associated with this functionality have been removed and the
CustomEvent.initCustomEventNS()method has been added.
EventTarget.willTriggerNS()have been removed.
EventTarget.dispatchEvent()now raises an exception if the
Event.typeattribute is syntactically invalid.
Event.isCustom()has been removed; it is not longer necessary due to the changes made to the
Event.isDefaultPrevented()has been turned into an attribute named
Event.timeStampis now a
Numberin the ECMAScript binding; a proposed correction to make the same change in [DOM Level 3 Core] is forthcoming.
Note: This section lists changes between DOM Level 2 Events and the DOM Level 3 Events Working Group Note published November 2003. This section will be merged with the preceding section (and list only changes between DOM Level 2 Events and this specification) in a future draft of this document.
This new specification provides a better separation between the DOM event flow, the event types, and the DOM interfaces.
This new specification introduced two new concepts in the event flow:
Event.stopPropagation()does no longer stop the event propagation entirely. It only stops it for a given event group.
Lots of clarifications have been made on the event types. The conformance is now explicitly defined against the event types, and not only in terms of interfaces required by the event types. Support for namespaces and the features
"MutationNameEvents" have been introduced.
Eventinterface has a new attribute
Event.namespaceURI, and a four new methods:
EventTargetinterface has four new methods:
EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup),
EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture),
EventTarget.hasEventListenerNS(namespaceURI, type). The method
DocumentEventinterface has one new method:
UIEventinterface has a new method
MouseEventinterface has two new methods
MutationEventinterface has a new method
DISPATCH_REQUEST_ERRconstant has been added.