diff options
author | Andres Rey <[email protected]> | 2016-11-16 16:29:00 +0000 |
---|---|---|
committer | Andres Rey <[email protected]> | 2016-11-16 16:29:00 +0000 |
commit | f07cb9489be1c7f7f57aa346d8b8bf8b6b53a82d (patch) | |
tree | e4bd914232fe09974a1aa0bc747169cd6d17eb25 /src/Readability.php | |
parent | d7f2d7602cd8d07470ec3fa367d380d88c5e7c88 (diff) |
Skipping original node when getting ancestors
Diffstat (limited to 'src/Readability.php')
-rw-r--r-- | src/Readability.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Readability.php b/src/Readability.php index 0e0b341..930e141 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -85,7 +85,7 @@ class Readability extends Element implements ReadabilityInterface $ancestors = []; $level = 0; - $node = $this; + $node = $this->getParent(); while ($node) { $ancestors[] = new static($node->node); |