Closed Bug 105280 Opened 23 years ago Closed 19 years ago

preventBubble(), preventCapture() should be remvoed

Categories

(Core :: DOM: Events, defect, P5)

x86
Windows 98
defect

Tracking

()

RESOLVED FIXED
Future

People

(Reporter: WeirdAl, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

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.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
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
*** Bug 105310 has been marked as a duplicate of this bug. ***
Priority: -- → P5
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
Is this reference still pertinent?
Assignee: joki → events
QA Contact: vladimire → ian
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.

Attachment

General

Created:
Updated:
Size: