summaryrefslogtreecommitdiff
path: root/src/Readability.php
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2016-11-14 17:32:41 +0000
committerAndres Rey <[email protected]>2016-11-14 17:32:41 +0000
commitd7f2d7602cd8d07470ec3fa367d380d88c5e7c88 (patch)
tree9b042ea63ac995bda179634554810d859a44a10d /src/Readability.php
parentc33298328f73e6c8f34e07ec9e92f2b6dd3c514b (diff)
Fixed a wrong call to get the ID using 'class' as tag name instead of 'id'
Diffstat (limited to 'src/Readability.php')
-rw-r--r--src/Readability.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Readability.php b/src/Readability.php
index 35b6514..0e0b341 100644
--- a/src/Readability.php
+++ b/src/Readability.php
@@ -204,7 +204,7 @@ class Readability extends Element implements ReadabilityInterface
}
// Look for a special ID
- $id = $this->getAttribute('class');
+ $id = $this->getAttribute('id');
if (trim($id)) {
if (preg_match($this->regexps['negative'], $id)) {
$weight -= 25;