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 explicitly 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.
Event
Event
interface has a new attribute namespaceURI
, and a four
new methods: isDefaultPrevented
,
isCustom
, stopImmediatePropagation
,
isPropagationStopped
, initEventNS
.EventTarget
EventTarget
interface has four new methods: addEventListenerNS
,
removeEventListenerNS
, willTriggerNS
,
hasEventListenerNS
.DocumentEvent
Event
interface has one new method: canDispatch
.UIEvent
UIEvent
interface has
a new method initUIEventNS
.MouseEvent
MouseEvent
interface has a new method initMouseEventNS
and a new
attribute altGraphKey
.MutationEvent
MutationEvent
interface has a new method initMutationEventNS
.EventException
DISPATCH_REQUEST_ERR
constant has been added.The interfaces CustomEvent
, TextEvent
, KeyboardEvent
,
and MutationNameEvent
were added to the Events module.