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

Unwrapped dom-if causes DOMException #1804

Closed
Sleeckx opened this issue Jun 9, 2015 · 2 comments
Closed

Unwrapped dom-if causes DOMException #1804

Sleeckx opened this issue Jun 9, 2015 · 2 comments
Assignees
Labels

Comments

@Sleeckx
Copy link

Sleeckx commented Jun 9, 2015

The following case throws a DOMException: NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.

http://jsbin.com/gujenocexo/2/edit?html,output

Wrapping the dom-if template in a div fixes the error.

Could this be related to #1631?

@sorvell sorvell added the p1 label Jun 10, 2015
@sorvell sorvell assigned kevinpschaaf and sorvell and unassigned kevinpschaaf Jun 10, 2015
@sorvell
Copy link
Contributor

sorvell commented Jun 12, 2015

There's a bug here, but the test case should define x-inner before x-outer. Doing so avoids the issue:

http://jsbin.com/gibewu/2/edit

@sorvell
Copy link
Contributor

sorvell commented Jun 12, 2015

Fixed in branch, see: http://jsbin.com/haseju/2/edit

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