w3c / input-events

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

It is unclear from the spec why inputEvent.dataTransfer is needed #37

Closed smaug---- closed 7 years ago

smaug---- commented 7 years ago

It mostly feels wrong. It should be dnd and clipboard events. No need to have it elsewhere.

chong-z commented 7 years ago

Yes in the table here https://w3c.github.io/input-events/#h-overview I guess we should only have dataTransfer for 'insertFromPaste' and 'insertFromDrop'.

'insertNonText' will be renamed to 'insertReplacementText', and 'insertFromYank' will only insert plain text.

johanneswilm commented 7 years ago

@choniong insertReplacementText can paste things with HTML markup. Things like 1<sup>a</sup>. The same should be true for yank. That's why they use dataTransfer rather than data.

johanneswilm commented 7 years ago

I believe all questions abotu thsi were resolved at the meeting. Please reopen if incorrect.