summaryrefslogtreecommitdiff
path: root/src/Nodes
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2018-10-17 19:00:14 +0100
committerAndres Rey <[email protected]>2018-10-17 19:00:14 +0100
commite62dfbd65f6e17440f8cedb7faef0ee256fca64a (patch)
treebce3bf1529c560f5671a85bd9db83fa9329a3ce5 /src/Nodes
parent8bac6550009f575214330dc96af802a5767288c4 (diff)
Update comment of hasSingleTagInsideElement
Diffstat (limited to 'src/Nodes')
-rw-r--r--src/Nodes/NodeTrait.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Nodes/NodeTrait.php b/src/Nodes/NodeTrait.php
index 7661e15..a140012 100644
--- a/src/Nodes/NodeTrait.php
+++ b/src/Nodes/NodeTrait.php
@@ -389,9 +389,8 @@ trait NodeTrait
}
/**
- * Checks if the current node has a single child and if that child is a P node.
- * Useful to convert <div><p> nodes to a single <p> node and avoid confusing the scoring system since div with p
- * tags are, in practice, paragraphs.
+ * Check if this node has only whitespace and a single element with given tag
+ * or if it contains no element with given tag or more than 1 element.
*
* @param $tag string Name of tag
*