Hacker News new | ask | show | jobs
by ryan_lane 3738 days 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/ClipboardEv...

2 comments

Other 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.
Did 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.

Did 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?
> 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.