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

Polymer.dom(...).observeNodes does not notify for some DOM removal #2587

Closed
cdata opened this issue Oct 17, 2015 · 2 comments
Closed

Polymer.dom(...).observeNodes does not notify for some DOM removal #2587

cdata opened this issue Oct 17, 2015 · 2 comments
Assignees
Labels

Comments

@cdata
Copy link
Contributor

cdata commented Oct 17, 2015

Please see the contrived test case here: http://jsbin.com/dajife/2

Removing nodes from the example element (notably, an element without a shadow root), fails to cause an expected notification from observeNodes.

@sorvell
Copy link
Contributor

sorvell commented Oct 17, 2015

Confirmed. The issue is that we're only notifying if we have an existing logical parent for the node that's added somewhere else. This is not a sufficient check and we'll need to fallback to using composed parent.

kevinpschaaf added a commit that referenced this issue Oct 17, 2015
Fix #2587: When Polymer.dom(el).appendChild(node) is called, cleanup …
@cdata
Copy link
Contributor Author

cdata commented Oct 19, 2015

This issue supports PolymerElements/iron-selector#73.

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