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

Failed to execute 'insertBefore' on 'Node' #7

Closed
ghost opened this issue Dec 13, 2015 · 4 comments
Closed

Failed to execute 'insertBefore' on 'Node' #7

ghost opened this issue Dec 13, 2015 · 4 comments
Labels

Comments

@ghost
Copy link

ghost commented Dec 13, 2015

I got an error :
Uncaught 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.

What should I do?

@gijsroge
Copy link
Owner

Could you provide a codepen?

@ghost
Copy link
Author

ghost commented Dec 13, 2015

Sure, here:
http://codepen.io/anon/pen/yeYPGW

@gijsroge gijsroge added the bug label Dec 13, 2015
@gijsroge
Copy link
Owner

Something is wrong with the codepen (syntax error on the end). But I do think I know what you mean. But to be sure could you update the codepen to replicate the issue you reported?

gijsroge added a commit that referenced this issue Dec 13, 2015
- Detects if mainNav is not a direct child of mainNavWrapper to prevent #7
@gijsroge
Copy link
Owner

Try the latest dist version please. Should give you a clean console warn what went wrong.

@gijsroge gijsroge closed this as completed Jan 4, 2016
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

1 participant