mayoff / arc90labs-readability

Automatically exported from code.google.com/p/arc90labs-readability
0 stars 0 forks source link

Cannot call method "removeChild" of null #630

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
http://diveintomark.org/archives/2010/04/19/furnished-souls-a-soaling

Encountered the error on readability line 710:
node.parentNode.removeChild(node);

The error occurred when using readability with SSJS and invoking it on the said 
URL. I put the above line in try/catch to work around it for now. I am using 
Rhino JS engine and the end bit of the debug output is as follows:

Readability: Candidate: [object HTMLQuoteElement] (:) with score 5
Readability: Candidate: [object HTMLQuoteElement] (:) with score 5
Readability: Candidate: [object HTMLQuoteElement] (:) with score 5
Readability: Candidate: [object HTMLQuoteElement] (:) with score 6
Readability: Looking at sibling node: [object HTMLDivElement] (:) with score 5
Readability: Sibling has score 5
Readability: Appending node: [object HTMLDivElement]
Readability: Cleaning Conditionally [object HTMLDivElement] (:nav)
Readability: Cleaning Conditionally [object HTMLDivElement] (:)
document readable in ( 4180 )
[  Envjs/1.6 (Rhino; U; Windows 7 x86 6.1; en-US; rv:1.7.0.rc2) Resig/20070309 
PilotFish/1.2.18  ]
loading document  
http://diveintomark.org/archives/2010/04/19/furnishedsouls-a-soaling
Readability: Removing unlikely candidate - comments
Readability: Removing unlikely candidate - comments

Original issue reported on code.google.com by ale...@gmail.com on 15 Aug 2010 at 10:02

GoogleCodeExporter commented 9 years ago
Hi Aleem,

Glad to hear you're using readability on the server side, unfortunately we 
don't have support for it currently and don't intend to support it anytime soon.

Good luck with it, though! 

Original comment by umb...@gmail.com on 16 Aug 2010 at 1:24