summaryrefslogtreecommitdiff
path: root/src/Nodes/NodeUtility.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Nodes/NodeUtility.php')
-rw-r--r--src/Nodes/NodeUtility.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Nodes/NodeUtility.php b/src/Nodes/NodeUtility.php
index b5f66ba..a3d8509 100644
--- a/src/Nodes/NodeUtility.php
+++ b/src/Nodes/NodeUtility.php
@@ -46,7 +46,7 @@ class NodeUtility
$next = $node;
while ($next
&& $next->nodeType !== XML_ELEMENT_NODE
- && preg_match(NodeUtility::$regexps['whitespace'], $next->textContent)) {
+ && $next->isWhitespace()) {
$next = $next->nextSibling;
}