Fixed list item number

pull/178/head
M66B 5 years ago
parent 5c865f16df
commit cb9606770f

@ -1988,7 +1988,8 @@ public class HtmlHelper {
else { else {
int index = 0; int index = 0;
for (Node child : parent.childNodes()) { for (Node child : parent.childNodes()) {
if (child instanceof Element) { if (child instanceof Element &&
child.nodeName().equals(element.tagName())) {
index++; index++;
if (child == element) if (child == element)
break; break;

Loading…
Cancel
Save