[w3c/clipboard-apis] Clarify "8.1. The copy action" in regards to copying selected data (#49)

I've initially logged it here https://github.com/w3c/editing/issues/168 but was directed to the Selection API / Clipboard API repos — not sure what the interdependencies are, so I'm logging it here.

I think the Copy action needs some clarification on: 

> 3.1. Copy the selected contents, if any, to the clipboard. Implementations should create alternate text/html and text/plain clipboard formats when content in a web page is selected.

In regards to how the selection translates to html content. Case in point, browsers treat a Selection whose Range is set to either a Node (via `range.selectNode`) or a Node's content (via `range.selectNodeContent`) the same way:

* Firefox will copy the Node's inner HTML to the clipboard
* Chrome and Safari will copy the Node's outer HTML to the clipboard

I believe there needs to be a way for authors to specify if the Node as a whole should be included in the clipboard, or just its content.




-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/issues/49

Received on Thursday, 24 August 2017 08:28:13 UTC