Chrome Version: ToT
OS: All but iOS
importNode() part of DOM specification says:
> 2. Return a *clone* of node, with context object and the clone children flag set if deep is true.
https://dom.spec.whatwg.org/#dom-document-importnode
However, our implementation doesn't share importNode() code and cloneNode() code.
For example, Document::importNode() contains a special handling for <template>, but HTMLTemplateElement::cloneNode() handles the same thing.
Also, I feel Element::CloneElement* functions are unnecessarily complex.
Chrome Version: ToT
OS: All but iOS
importNode() part of DOM specification says:
> 2. Return a *clone* of node, with context object and the clone children flag set if deep is true.
https://dom.spec.whatwg.org/#dom-document-importnode
However, our implementation doesn't share importNode() code and cloneNode() code very well.
For example, Document::importNode() contains a special handling for <template>, but HTMLTemplateElement::cloneNode() handles the same thing.
Also, I feel Element::CloneElement* functions are unnecessarily complex.
Comment 1 by tkent@chromium.org
, Feb 14 2018