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.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Nodes/NodeUtility.php b/src/Nodes/NodeUtility.php
index 88512f2..0e8a3fd 100644
--- a/src/Nodes/NodeUtility.php
+++ b/src/Nodes/NodeUtility.php
@@ -43,13 +43,17 @@ class NodeUtility
];
/**
+ * Finds the next node, starting from the given node, and ignoring
+ * whitespace in between. If the given node is an element, the same node is
+ * returned.
+ *
* Imported from the Element class on league\html-to-markdown.
*
* @param $node
*
- * @return DOMElement
+ * @return DOMNode
*/
- public static function nextElement($node)
+ public static function nextNode($node)
{
$next = $node;
while ($next