Skip to content

Conversation

@Jorriss
Copy link
Contributor

@Jorriss Jorriss commented May 15, 2017

This will ensure that the first node will be returnd unlike FirstChild which searches text+nodes.

This will ensure that the first node will be returnd unlike FirstChild which searches text+nodes.
@Jorriss
Copy link
Contributor Author

Jorriss commented May 15, 2017

If the HTML that is being processed has text/linebreaks between the tags the firstChild/childNodes will contain the text in the property array. The children property will only return nodes and not the text.

image

@JustinPealing JustinPealing merged commit 0166c93 into JustinPealing:master May 16, 2017
@JustinPealing
Copy link
Owner

Done! Thanks for the PR

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