Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expected behavior for importNode,cloneNode #1888

Closed
timeu opened this issue Jun 16, 2015 · 4 comments
Closed

Expected behavior for importNode,cloneNode #1888

timeu opened this issue Jun 16, 2015 · 4 comments
Assignees
Labels

Comments

@timeu
Copy link

timeu commented Jun 16, 2015

I am not sure if this is by design and/or if it is a Polymer or rather a general Web-Components spec issue.

When I use importNode or cloneNode with deep=true of a custom-element that contains another custom element (via Light DOM) and then insert it into the document, the resulting DOM structure is not the same as if I would create it manually.

See the jsbin: http://jsbin.com/haxeni/edit?html,console

@sorvell sorvell added the p2 label Jun 16, 2015
@sorvell sorvell self-assigned this Jun 16, 2015
@sorvell sorvell added p1 and removed p2 labels Jun 16, 2015
@sorvell
Copy link
Contributor

sorvell commented Jun 16, 2015

Thanks for posting this. This is a known limitation that comes with using Shady DOM. We need to add support for importNode and cloneNode to the Polymer.dom api to address this. At that point, you'll use Polymer.dom(element).cloneNode and Polymer.dom(element).importNode.

@sorvell
Copy link
Contributor

sorvell commented Jun 16, 2015

Marking this high priority since we plan to add these api's very soon.

@timeu
Copy link
Author

timeu commented Jun 16, 2015

Great thanks for the feedback.

@nomego
Copy link

nomego commented Jul 1, 2015

After further investigation, separate issue #2010 is opened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants