This new specification provides a better separation between the DOM even flow, the event types, and the DOM interfaces.
This new specification introduced two new concepts in the event flow:
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 explicity defined against the event types, and
not only the interfaces required by the event types. Support for
namespaces and the feature "BasicEvents" have been
introduced.
The DOM Level 2 Event load event type can now be
dispatched to more [HTML 4.01] elements. blur
and focus have been clarified and restricted to [HTML
4.01] applications only.
EventEvent
interface has a new attribute namespaceURI, and a four
new methods: isDefaultPrevented,
isCustom, stopImmediatePropagation,
isPropagationStopped, initEventNS.EventTargetEventTarget
interface has four new methods: addEventListenerNS,
removeEventListenerNS, willTriggerNS,
hasEventListenerNS.DocumentEventEvent
interface has two new methods:
createEventListenerGroup and
canDispatch.UIEventUIEvent interface has
a new method initUIEventNS.MouseEventMouseEvent
interface has a new method initMouseEventNS and a new
attribute altGraphKey.MutationEventMutationEvent
interface has a new method initMutationEventNS.EventExceptionDISPATCH_REQUEST_ERR
constant has been added.The interfaces EventListenerGroup,
CustomEvent, TextEvent, KeyboardEvent,
and MutationNameEvent
were added to the Events module.