w3c / input-events

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

allow you to specify targetRanges and dataTransfer in InputEventInit #147

Closed johanneswilm closed 6 months ago

johanneswilm commented 8 months ago

Allowing the specification of targetRanges and dataTransfer has been possible in Firefox and Chromium for some time - but not Webkit. There is now a PR to make this happen in Webkit as well [1].

@whsieh writes:

It seems like the spec doesn't include these two arguments, but testing in Chrome and Firefox, I can see that they both allow you to specify targetRanges and dataTransfer in InputEventInit, so this change would align with Firefox/Chrome. It seems that the spec just needs to be updated.

Note that specifying target ranges has been discussed earlier [2] and it was argued there that the spec now contains everything needed to make dataTransfer/targetRanges part of InputEventInit.

[1] https://github.com/WebKit/WebKit/pull/19346

[2] https://github.com/w3c/input-events/issues/47

johanneswilm commented 7 months ago

Fields as specified in input events spec: https://w3c.github.io/input-events/#interface-InputEvent