Re: [webcomponents] Custom elements disconnected from a document should not be upgraded (#419)

If being connected to a document was too restrictive, we could add a new flag on element to indicate whether an element is upgradable, and make all elements created by the parser to have that flag turned on by default.  e.g. `document.createElement('my-element', {upgrade: true})`.  We could also add a helper function on template element e.g. `template.instantiate()`, which does `template.content.cloneNode(true)` and then sets that flag on every single cloned node.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/419#issuecomment-193573193

Received on Tuesday, 8 March 2016 02:52:10 UTC