preventBubble(), preventCapture() should be remvoed

RESOLVED FIXED in Future

Status

()

Core
DOM: Events
P5
normal
RESOLVED FIXED
16 years ago
11 years ago

People

(Reporter: WeirdAl, Unassigned)

Tracking

({testcase})

Trunk
Future
x86
Windows 98
testcase
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

16 years ago
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

16 years ago
Created attachment 53952 [details]
testcase showing event propagation
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase

Comment 2

16 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

16 years ago
*** Bug 105310 has been marked as a duplicate of this bug. ***

Updated

15 years ago
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

Comment 5

13 years ago
Is this reference still pertinent?
Assignee: joki → events
QA Contact: vladimire → ian

Updated

11 years ago
Depends on: 330710

Comment 6

11 years ago
preventBubble and preventCapture are now no-ops, see bug 330494.
Status: NEW → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.