{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/clipboard-apis/issues/10","labels_url":"https://api.github.com/repos/w3c/clipboard-apis/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/w3c/clipboard-apis/issues/10/comments","events_url":"https://api.github.com/repos/w3c/clipboard-apis/issues/10/events","html_url":"https://github.com/w3c/clipboard-apis/issues/10","id":92045052,"number":10,"title":"The ClipboardEvent constructor is strange","user":{"login":"foolip","id":498917,"avatar_url":"https://avatars.githubusercontent.com/u/498917?v=3","gravatar_id":"","url":"https://api.github.com/users/foolip","html_url":"https://github.com/foolip","followers_url":"https://api.github.com/users/foolip/followers","following_url":"https://api.github.com/users/foolip/following{/other_user}","gists_url":"https://api.github.com/users/foolip/gists{/gist_id}","starred_url":"https://api.github.com/users/foolip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foolip/subscriptions","organizations_url":"https://api.github.com/users/foolip/orgs","repos_url":"https://api.github.com/users/foolip/repos","events_url":"https://api.github.com/users/foolip/events{/privacy}","received_events_url":"https://api.github.com/users/foolip/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":55,"created_at":"2015-06-30T09:45:46Z","updated_at":"2015-09-29T09:26:31Z","closed_at":null,"body":"https://w3c.github.io/clipboard-apis/#clipboard-event-interfaces\r\n\r\nThere's an effort to implement the `ClipboardEvent` constructor in Blink:\r\nhttps://code.google.com/p/chromium/issues/detail?id=496394\r\nhttps://codereview.chromium.org/1178683007/\r\n\r\nIn the review I noticed some weird things, quoted here:\r\n\r\n> The spec is strange and I think it probably needs to be fixed a bit in order to be implemented. It looks like Firefox doesn't actually do what it says either, at least judging by this: new ClipboardEvent({data:'foo',dataType:'text/plain'}).clipboardData.types\r\n\r\n> the spec expresses this differently, and is pretty weird to me. As part of \"fire a clipboard event\" it checks if the event is trusted and uses the data and dataType arguments from the constructor without actually storing somewhere in the interim. If actually implemented like this, we'd have to add the entry to the DataTransferItemList when the event is fired, not in the constructor.\r\n\r\n> Also strange is that there's no way to actually run the \"fire a clipboard event\" algorithm from scripts, all of the entry points look like they're for actual copy/paste/cut actions.\r\n\r\nHow should we reach interoperability here? To me the `data` and `dataType` members don't seem very useful, and it would be more in line with other event constructors to simply take a `clipboardData` attribute. If `DataTransfer` doesn't have a constructor, maybe it should? If it shouldn't, then perhaps a `ClipboardEvent` constructor doesn't make sense either."},"comment":{"url":"https://api.github.com/repos/w3c/clipboard-apis/issues/comments/144004783","html_url":"https://github.com/w3c/clipboard-apis/issues/10#issuecomment-144004783","issue_url":"https://api.github.com/repos/w3c/clipboard-apis/issues/10","id":144004783,"user":{"login":"foolip","id":498917,"avatar_url":"https://avatars.githubusercontent.com/u/498917?v=3","gravatar_id":"","url":"https://api.github.com/users/foolip","html_url":"https://github.com/foolip","followers_url":"https://api.github.com/users/foolip/followers","following_url":"https://api.github.com/users/foolip/following{/other_user}","gists_url":"https://api.github.com/users/foolip/gists{/gist_id}","starred_url":"https://api.github.com/users/foolip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foolip/subscriptions","organizations_url":"https://api.github.com/users/foolip/orgs","repos_url":"https://api.github.com/users/foolip/repos","events_url":"https://api.github.com/users/foolip/events{/privacy}","received_events_url":"https://api.github.com/users/foolip/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T09:26:31Z","updated_at":"2015-09-29T09:26:31Z","body":"Ping? @Tanayc is kind of blocked on this issue, what's needed to reach a conclusion here?"}}