[svgwg] Indicate which elements need preserved state for DOM cloning

AmeliaBR has just created a new issue for 
https://github.com/w3c/svgwg:

== Indicate which elements need preserved state for DOM cloning ==
As raised by @karip on #90 ([Comment 
here](https://github.com/w3c/svgwg/issues/90#issuecomment-229666748)).

The [DOM 4 specs for `node.cloneNode()` 
method](https://www.w3.org/TR/domcore/#concept-node-clone-ext) 
indicates:

> Specifications may define cloning steps for all or some nodes. The 
algorithm is passed copy, node, document, and optionally a clone 
children flag, as indicated in the clone algorithm.

This allows current state of the node (such as text value in an input 
element) to also be cloned.

[HTML 
requires](https://www.w3.org/TR/html5/scripting-1.html#the-script-element)
 that cloned `<script>` elements keep track of whether they are 
already started.  A note in the DOM spec suggests

> "SVG ought to do the same for its script elements, but does not call
 this out at the moment." 

There may be other parts of SVG where special cloning rules are 
required, such as `use` elements and animation elements.


Please view or discuss this issue at 
https://github.com/w3c/svgwg/issues/218 using your GitHub account

Received on Tuesday, 26 July 2016 17:22:34 UTC