|
|
@ -837,8 +837,8 @@ public class HtmlHelper {
|
|
|
|
for (Element child : table.children()) {
|
|
|
|
for (Element child : table.children()) {
|
|
|
|
switch (child.tagName()) {
|
|
|
|
switch (child.tagName()) {
|
|
|
|
case "thead":
|
|
|
|
case "thead":
|
|
|
|
case "tfoot":
|
|
|
|
|
|
|
|
case "tbody":
|
|
|
|
case "tbody":
|
|
|
|
|
|
|
|
case "tfoot":
|
|
|
|
for (Element sub : child.children())
|
|
|
|
for (Element sub : child.children())
|
|
|
|
if ("tr".equals(sub.tagName())) {
|
|
|
|
if ("tr".equals(sub.tagName())) {
|
|
|
|
rows.add(sub);
|
|
|
|
rows.add(sub);
|
|
|
@ -1017,6 +1017,9 @@ public class HtmlHelper {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Fix dangling table elements
|
|
|
|
|
|
|
|
document.select("tbody,thead,tfoot,tr,th,td").tagName("div");
|
|
|
|
|
|
|
|
|
|
|
|
// Images
|
|
|
|
// Images
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img
|
|
|
|
for (Element img : document.select("img")) {
|
|
|
|
for (Element img : document.select("img")) {
|
|
|
|