diff options
author | Andres Rey <[email protected]> | 2018-11-18 11:14:07 +0000 |
---|---|---|
committer | Andres Rey <[email protected]> | 2018-11-18 11:14:07 +0000 |
commit | 6470dfd30cc347b25b4d3b580908528abdce943b (patch) | |
tree | b964a5acee63583b13b8be1e20555b137398badc /src/Nodes | |
parent | 14e330abb0f4b7ca2b9b74e7c33ddcc914dc3034 (diff) |
Fix node shifting issues when removing chained BRs
Diffstat (limited to 'src/Nodes')
-rw-r--r-- | src/Nodes/NodeUtility.php | 2 |
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; } |