event bubbling and capture

I'd like to verify my current understanding of DOM Level 2 Event handling. I
may be misunderstanding parts of the spec. Where am I off base in the
statements below?

All events are delivered in one of three ways.
1) only delivered to the event target
2) delivered to the event target and containing nodes using bubbling (from
event target up to Document)
3) delivered to the event target and containing nodes using capturing (from
Document down to event target)

This is specific to the event and cannot be changed. For example,
MouseEvents always bubble.

When listeners register with an event target using the addEventListener
method in EventTarget they must specify the event type and whether they want
to use capture.

If a listener registers for an event but sets the useCapture parameter to
true when the event uses bubbling or to false when the event uses capturing
then the listener will not be notified when the event occurs. I've got to be
wrong here! I don't understand the purpose of the useCapture parameter.

Received on Saturday, 23 September 2000 22:50:49 UTC