[Bug 23235] allow triggering copy action from certain event handlers

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23235

--- Comment #10 from Hallvord R. M. Steen <hsteen@mozilla.com> ---
(In reply to James M. Greene from comment #9)
> How would you do a simulated event with multiple data types, though?

That's indeed not handled at the moment. I've been considering saying that the
implementation must automatically create a text/plain form if scripts set
text/html only, but that's just one use case. Dispatching multiple events isn't
the way to go either. Potentially, one could imagine syntaxes like

new ClipboardEvent('copy', {data:{'text/plain':'test',
'text/html':'<p>test</p>'}}

I'm not sure if that's the best way.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 24 January 2014 01:35:28 UTC