w3c / input-events

Input Events
https://w3c.github.io/input-events/
Other
23 stars 16 forks source link

Add `targetRanges` to |InputEventInit| and fixes "<" issue #48

Closed chong-z closed 7 years ago

chong-z commented 7 years ago

This PR fixes #47.

chong-z commented 7 years ago

Marked as non-substantive for IPR from ash-nazg.

foolip commented 7 years ago

This is all valid WebIDL, and people will understand what's intended, but it's actually missing something connecting the targetRanges member of the dictionary to the getTargetRanges() method of the interface. I have no idea what these ranges are, but perhaps you'll want an internal slot on the event object, set by the constructor and read by the getTargetRanges() method.

Or, just use [SameObject] readonly attribute FrozenArray<StaticRange> targetRanges on the interface, that'd be more in line with how events and their init dicts usually work.