WICG / EventListenerOptions

An extension to the DOM event pattern to allow authors to disable support for preventDefault
Other
1.17k stars 140 forks source link

Need some mechanism for feature detection #8

Closed RByers closed 9 years ago

RByers commented 9 years ago

Whether EventListenerOptions is supported at all, and which options in particular are supported.

Maybe an API like EventTarget.supportedOptions that returns an EventListenerOptions (where the values don't mean anything)?

RByers commented 9 years ago

How's this @tdresser? Unfortunately WebIDL says that attributes cannot be of type dictionary (I wonder why?). I figured Event was more appropriate than EventTarget (similar to the constants defined there I guess).