Closed Bug 874003 Opened 11 years ago Closed 11 years ago

Remove preventBubble and preventCapture

Categories

(Core :: DOM: Events, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: bruant.d, Assigned: emk)

Details

(Keywords: addon-compat, dev-doc-complete, site-compat)

Attachments

(1 file)

There is no plan in make a standard out of these Mozilla-specific methods. stopPropagation is what is used by developers (standard and better cross-browser compat)
They have no reason to exist as properties on Event.prototype anymore.
Need to be careful especially with preventBubble. Traditionally it has been used oddly often.
Attached patch patchSplinter Review
Let's try and see what's going on early in the cycle.
Currently preventBubble is no-op, so any code depending on preventBubble is broken anyway.
Try result: https://tbpl.mozilla.org/?tree=Try&rev=0fe79854849d
Assignee: nobody → VYV03354
Status: NEW → ASSIGNED
Attachment #751836 - Flags: review?(bugs)
Attachment #751836 - Flags: review?(bugs) → review+
https://hg.mozilla.org/mozilla-central/rev/343242181775
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Updated:
https://developer.mozilla.org/en-US/docs/Web/API/Event
https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIDOMEvent
https://developer.mozilla.org/en-US/docs/Site_Compatibility_for_Firefox_24

We should also consider removing (Bug 691151) or deprecating (Bug 726933) getPreventDefault. The nsIDOMEvent document says it has been deprecated since Gecko 16.0 but the bugs are still open.
(In reply to Kohei Yoshino from comment #5)
> https://developer.mozilla.org/en-US/docs/Site_Compatibility_for_Firefox_24

I think preventBubble and preventCapture should be explained in a separate clause.
These methods are not derived from Netscape but from the earlier W3C draft.
Chromium have never supported these methods from the start. And the replacement method is stopPropagation.
(In reply to Masatoshi Kimura [:emk] from comment #6)
> I think preventBubble and preventCapture should be explained in a separate
> clause.
> These methods are not derived from Netscape but from the earlier W3C draft.
> Chromium have never supported these methods from the start. And the
> replacement method is stopPropagation.

Thank you for the feedback. I just corrected the document.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: