Strip inline max-height and max-width from elements

This commit is contained in:
Nate Weaver
2020-05-20 16:33:14 -05:00
parent 18c986f7fa
commit f58ccbaed2

View File

@@ -344,7 +344,7 @@ private extension ArticleRenderer {
},
stripStyles: function() {
document.getElementsByTagName("body")[0].querySelectorAll("style, link[rel=stylesheet]").forEach(element => element.remove());
document.getElementsByTagName("body")[0].querySelectorAll("[style]").forEach(element => stripStylesFromElement(element, ["color", "background", "font"]));
document.getElementsByTagName("body")[0].querySelectorAll("[style]").forEach(element => stripStylesFromElement(element, ["color", "background", "font", "max-width", "max-height"]));
},
linkHover: function() {
var anchors = document.getElementsByTagName("a");