Elements that have no .style (e.g. mathml) are probably visible; fixes #493

pull/497/head
Dan Burzo 6 years ago committed by Gijs
parent 9fbe42683a
commit 44e90de00b

@ -1701,7 +1701,7 @@ Readability.prototype = {
},
_isProbablyVisible: function(node) {
return node.style.display != "none" && !node.hasAttribute("hidden");
return (!node.style || node.style.display != "none") && !node.hasAttribute("hidden");
},
/**

Loading…
Cancel
Save