Closed
Bug 105280
Opened 23 years ago
Closed 19 years ago
preventBubble(), preventCapture() should be remvoed
Categories
(Core :: DOM: Events, defect, P5)
Tracking
()
RESOLVED
FIXED
Future
People
(Reporter: WeirdAl, Unassigned)
References
()
Details
(Keywords: testcase)
Attachments
(1 file)
2.74 KB,
text/html
|
Details |
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.
Reproducible: Always
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[0]. The input element, being the target, also
should receive it.
Testcase attachment in one moment.
Reporter | ||
Comment 1•23 years ago
|
||
Updated•23 years ago
|
Comment 2•23 years ago
|
||
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.
Summary: preventBubble() stops event → preventBubble(), preventCapture() should be remvoed
Target Milestone: --- → Future
Comment 3•23 years ago
|
||
*** Bug 105310 has been marked as a duplicate of this bug. ***
Updated•22 years ago
|
Priority: -- → P5
Comment 4•20 years ago
|
||
Is this still the plan? jst? bryner?
We have a bunch of code using these methods; it'd need to migrate to
stopPropagation....
Depends on: 234455
Comment 5•20 years ago
|
||
Is this reference still pertinent?
Updated•19 years ago
|
Assignee: joki → events
QA Contact: vladimire → ian
Comment 6•19 years ago
|
||
preventBubble and preventCapture are now no-ops, see bug 330494.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•