Closed Bug 656954 Opened 14 years ago Closed 14 years ago

Add defaultPrevented to nsIDOMEvent

Categories

(Core :: DOM: Events, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla6

People

(Reporter: smaug, Assigned: smaug)

References

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

We have non-standard getPreventDefault() in nsIDOMNSEvent, but we should deprecate that at some point and start using defaultPrevented. But first, implement defaultPrevented.
Attached patch patch (deleted) — Splinter Review
Attachment #532339 - Flags: review?(jonas)
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment on attachment 532339 [details] [diff] [review] patch (just took a look at the changeset on m-c out of curiosity) > +is(e.defaultPrevented, false, > + "After creating event defaultPrevented should be true"); Was the second line supposed to be "After creating event defaultPrevented should be _false_" ? ;)
yes! I'll fix that.
Assignee: nobody → Olli.Pettay
Flags: in-testsuite+
Target Milestone: --- → mozilla6
Blocks: 714601
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: