summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/HTMLParser.php2
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;
}
}