Skip to content

Fix nodeType check in fragment.js #389

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

Closed
wants to merge 1 commit into from
Closed

Conversation

jmonma
Copy link

@jmonma jmonma commented Aug 7, 2014

When appending multiple child nodes to the fragment, there is a check for each node to ensure it has a nodeType === 1, however, the check was being performed repeatedly on the wrapper node instead.

@yyx990803
Copy link
Member

Oops thanks for catching this! If you don't mind - can you work on the dev branch and merge against dev branch (currently it's master -> master) ? You probably need to open a new PR to do that.

@yyx990803
Copy link
Member

Sorry, but I just realized this check would ignore textNode as well. Also, in the next branch comment nodes will serve certain purposes as well, so the best thing to do is probably just remove the check all together.

@jmonma
Copy link
Author

jmonma commented Aug 7, 2014

I see, ok, I can do a little PR against the dev branch that just removes the check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants