Skip to content

Correctly test for whitespace-only nodeValues#205

Merged
adamwulf merged 1 commit intoadamwulf:masterfrom
boryane:patch-1
Dec 8, 2015
Merged

Correctly test for whitespace-only nodeValues#205
adamwulf merged 1 commit intoadamwulf:masterfrom
boryane:patch-1

Conversation

@boryane
Copy link
Contributor

@boryane boryane commented Dec 6, 2015

As written, a nodeValue of "test test" will return True which appears to be the incorrect behavior. I believe only empty nodeValues and nodes that only have whitespace characters should return True.

This fix looks for any non-whitespace characters in nodeValue and only returns True if none are found.

As written, a nodeValue of "test test" will return True which appears to be the incorrect behavior. I believe only empty nodeValues and nodes that only have whitespace characters should return True.

This fix looks for any non-whitespace characters in nodeValue and only returns True if none are found.
adamwulf added a commit that referenced this pull request Dec 8, 2015
Correctly test for whitespace-only nodeValues
@adamwulf adamwulf merged commit 536afa3 into adamwulf:master Dec 8, 2015
@adamwulf
Copy link
Owner

adamwulf commented Dec 8, 2015

good catch - thanks!

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