Skip to content

Commit

Permalink
Fix the previous test as suggested by @fb55
Browse files Browse the repository at this point in the history
  • Loading branch information
barijaona committed Dec 29, 2015
1 parent 162ea15 commit a701364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readabilitySAX.js
Expand Up @@ -438,7 +438,7 @@ Readability.prototype.onclosetag = function(tagName){
if(this._settings.searchFurtherPages && tagName === "a"){
this._scanLink(elem);
}
else if(tagName === "title" && tagName in headerTags){
else if(tagName === "title" && !this._origTitle){
this._origTitle = elem.toString().trim().replace(re_whitespace, " ");
return;
}
Expand Down

0 comments on commit a701364

Please sign in to comment.