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

[ShadyDOM] Exception when removing non-distributed nodes #1366

Closed
justinfagnani opened this issue Apr 3, 2015 · 2 comments
Closed

[ShadyDOM] Exception when removing non-distributed nodes #1366

justinfagnani opened this issue Apr 3, 2015 · 2 comments
Labels

Comments

@justinfagnani
Copy link
Contributor

This code throws:

let child = Polymer.dom(this).querySelector('#not-distributed');
console.assert(Polymer.dom(child).parentNode == this);
Polymer.dom(this).removeChild(child);

Uncaught NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.

@sorvell
Copy link
Contributor

sorvell commented Apr 3, 2015

Good catch, we'll need to check if the element is distributed here.

@sorvell
Copy link
Contributor

sorvell commented Apr 10, 2015

Cannot repro. Please re-open if this issues comes back.

@sorvell sorvell closed this as completed Apr 10, 2015
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

2 participants