From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.5) Gecko/20011011
BuildID: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.5) Gecko/20011011
The preventBubble() method, when executing during the capturing phase of an
Event object, does not currently allow said Event object to reach its target.
It stops the event at the object which the listener is attached to.
Steps to Reproduce:
1. Open the testcase and bonk on the button.
Actual Results: Two objects capture the Event object: the window and the
document body element.
Expected Results: Three objects capture the Event object: the window,
document.body, and document.forms. The input element, being the target, also
should receive it.
Testcase attachment in one moment.
Created attachment 53952 [details]
testcase showing event propagation
You are very correct but preventBubble is not, in fact, a standard method. It
was in an early draft but was replaced with stopPropagation(), which is the
effect you're seeing. Rather than fixing this what needs to be done is that
preventBubble/preventCapture both need to be removed. Updating bug to that effect.
*** Bug 105310 has been marked as a duplicate of this bug. ***
Is this still the plan? jst? bryner?
We have a bunch of code using these methods; it'd need to migrate to
Is this reference still pertinent?
preventBubble and preventCapture are now no-ops, see bug 330494.