From 9b1ba47d51651884f2125eed64f553a23bb103ea Mon Sep 17 00:00:00 2001 From: JJfutbol Date: Wed, 8 Jul 2009 00:58:37 +0000 Subject: - 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 --- js/readability.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/readability.js') 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); } -- cgit v1.2.3