[webcomponents] Copying and Pasting a Web Component

Hi,

What is expected to happen if a custom element or an element with shadow DOM is copied and pasted from one contenteditable area to another?

Are we expected to serialize the composed tree and paste that?

We can't keep the shadow DOM structure as there is no serialized form for it, and no script could run when it's pasted.

I understand that there is no normative documentation on how copy and paste work to begin with but I'd like to see at least a non-normative note as to what UAs are expected to do since this would surely have a huge compatibility and usability implications down the road.

Any thoughts?

- R. Niwa

Received on Thursday, 6 February 2014 09:58:52 UTC