diff options
author | Andres Rey <[email protected]> | 2016-11-16 16:29:13 +0000 |
---|---|---|
committer | Andres Rey <[email protected]> | 2016-11-16 16:29:13 +0000 |
commit | 34196b0a2b303d6fbb715d492643dbe1b33ab03f (patch) | |
tree | 2fbbd08951cd866298dee264117de6553082188f /src | |
parent | f07cb9489be1c7f7f57aa346d8b8bf8b6b53a82d (diff) |
Fixed a small mistake when checking for single P nodes
Diffstat (limited to 'src')
-rw-r--r-- | src/HTMLParser.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HTMLParser.php b/src/HTMLParser.php index 4e31efb..9e5a20f 100644 --- a/src/HTMLParser.php +++ b/src/HTMLParser.php @@ -610,7 +610,7 @@ class HTMLParser $children = $node->getChildren(); if (count($children) === 1) { - if ($node->tagNameEqualsTo('p')) { + if ($children[0]->tagNameEqualsTo('p')) { return true; } } |