Remove elements without height or width

pull/168/head
M66B 5 years ago
parent 65be3bd878
commit f2fa4800d7

@ -231,7 +231,7 @@ public class HtmlHelper {
break;
case "display":
if ("none".equals(value) && !display_hidden) {
if (!display_hidden && "none".equals(value)) {
Log.i("Removing element " + element.tagName());
element.empty();
}
@ -240,6 +240,17 @@ public class HtmlHelper {
element.attr("inline", "true");
break;
case "height":
case "width":
//case "font-size":
//case "line-height":
if (!display_hidden &&
("0".equals(value) || "0px".equals(value))) {
Log.i("Removing element " + element.tagName());
element.empty();
}
break;
}
}
}

Loading…
Cancel
Save