diff options
author | JJfutbol <JJfutbol@d4e419ec-0920-11de-bbfd-a7c1bc4c261e> | 2009-07-08 00:58:37 +0000 |
---|---|---|
committer | JJfutbol <JJfutbol@d4e419ec-0920-11de-bbfd-a7c1bc4c261e> | 2009-07-08 00:58:37 +0000 |
commit | 9b1ba47d51651884f2125eed64f553a23bb103ea (patch) | |
tree | 4845e60d57b18acc4cdf7f14033dcdffdc366751 /js/readability.js | |
parent | b260a47d808ed044f5d12ec8920e946c581096e9 (diff) | |
download | readability-simple-9b1ba47d51651884f2125eed64f553a23bb103ea.tar.bz2 readability-simple-9b1ba47d51651884f2125eed64f553a23bb103ea.zip |
- updated readability start with new bookmarklet code, added comments
- small tweaks to readability algorithm
git-svn-id: http://arc90labs-readability.googlecode.com/svn/trunk@59 d4e419ec-0920-11de-bbfd-a7c1bc4c261e
Diffstat (limited to 'js/readability.js')
-rwxr-xr-x | js/readability.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/readability.js b/js/readability.js index 6b53a15..5619c38 100755 --- a/js/readability.js +++ b/js/readability.js @@ -508,7 +508,7 @@ function removeNonContentElement(element, tagName) {
// the number of non-paragraph elements is more than actual
// paragraphs or other ominous signs (:) and elements
- if (img > p || li >= p || a >= p || p == 0 || embed > 0)
+ if (img > p || li > p || a > p || p == 0 || embed > 0)
{
descendant.parentNode.removeChild(descendant);
}
|