From e62dfbd65f6e17440f8cedb7faef0ee256fca64a Mon Sep 17 00:00:00 2001 From: Andres Rey Date: Wed, 17 Oct 2018 19:00:14 +0100 Subject: Update comment of hasSingleTagInsideElement --- src/Nodes/NodeTrait.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/Nodes') 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

nodes to a single

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 * -- cgit v1.2.3