ISSUE-123 (feature strings): Rationale for feature strings [DOM3 Events]

ISSUE-123 (feature strings): Rationale for feature strings [DOM3 Events]

http://www.w3.org/2008/webapps/track/issues/123

Raised by: Doug Schepers
On product: DOM3 Events

Simon Pieters <http://lists.w3.org/Archives/Public/www-dom/2010JulSep/0125.html>:
[[
What's the use case for extended feature strings for event types
(hasFeature('Events.click', ''))? Opera, WebKit and Gecko don't support
this. [1]

What's the use case for feature strings for event interfaces
(hasFeature('KeyboardEvent', '') or hasFeature('Events.KeyboardEvent'))?
The spec says it's for backwards compatibility, but Opera, WebKit and
Gecko don't support this. [2] It's easier to test for event interfaces by
checking if the interface object exists as a property on the global
object, i.e. window.KeyboardEvent. (Opera currently doesn't expose
KeyboardEvent on window, but that's something we should fix.)

]]

Received on Wednesday, 15 September 2010 17:49:55 UTC