3 ms·
I do wonder why they didn't go with an API that other browsers are already supporting, though: https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent
by ryan_lane 11y ago
I do wonder why they didn't go with an API that other browsers are already supporting, though:
https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEv...
- om2 11y agoOther browsers support the execCommand API as well. Adding a new, arguably cleaner API is a separate undertaking from removing the unnecessary limitation on the older API.
- masklinn 11y agoDid you consider reading the page you linked to? Clipboard events are already supported by safari (which the page you've linked to notes) and they've got nothing to do with execCommand, they are about hooking and reacting to user-triggered clipboard operations e.g. the user pastes (via contextual menu or shortcut), the software can know about it and alter the content before it's pasted. execCommand is about programmatically triggering clipboard events e.g. the user clicks a button in the page and the application translates that to a copy or paste event.
- DigitalJack 11y agoDid you consider removing the first sentence of your post and it would have been less smug and taunting, leaving behind something that lifts up the conversation?
- masklinn 11y ago> Did you consider removing the first sentence of your post and it would have been less smug and taunting Did you consider taking your own advice? > leaving behind something that lifts up the conversation? What are you talking about? There is no conversation, and what this subthread needs is not uplifting is euthanising.