We have non-standard getPreventDefault() in nsIDOMNSEvent, but we should deprecate that at some point and start using defaultPrevented. But first, implement defaultPrevented.
Created attachment 532339 [details] [diff] [review] patch
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.
6 years ago
Documentation added: https://developer.mozilla.org/en/DOM/event.defaultPrevented Updated: https://developer.mozilla.org/en/DOM/event.preventDefault https://developer.mozilla.org/en/DOM/event Mentioned on Firefox 6 for developers.