diff options
author | Andres Rey <[email protected]> | 2017-11-22 21:03:28 +0000 |
---|---|---|
committer | Andres Rey <[email protected]> | 2017-11-22 21:03:28 +0000 |
commit | 5cd29e5f0821d2b2c00da5b567db048f36acfd3b (patch) | |
tree | 08636e95d054ead65ca0e53db52d9c9171dcd7f2 /src | |
parent | afe9d56e3d18b7552d494c7a05a1b995550b2e88 (diff) |
Add node to the elementsToScore array after converting it from a div to a p + test case
Diffstat (limited to 'src')
-rw-r--r-- | src/HTMLParser.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/HTMLParser.php b/src/HTMLParser.php index 8c864cb..4eb83d5 100644 --- a/src/HTMLParser.php +++ b/src/HTMLParser.php @@ -700,6 +700,7 @@ class HTMLParser $pNode = $node->getChildren(true)[0]; $node->replaceChild($pNode); $node = $pNode; + $elementsToScore[] = $node; } elseif (!$this->hasSingleChildBlockElement($node)) { $node->setNodeTag('p'); $elementsToScore[] = $node; |