Skip to content

Loading…

Unwrapped dom-if causes DOMException #1804

Closed
Sleeckx opened this Issue · 2 comments

3 participants

@Sleeckx

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
@kevinpschaaf kevinpschaaf was unassigned by sorvell
@sorvell sorvell self-assigned this
@sorvell
Owner

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
Owner

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

@sorvell sorvell closed this in #1845
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.