Fixed list item number

This commit is contained in:
M66B 2020-05-01 20:04:22 +02:00
parent 5c865f16df
commit cb9606770f
1 changed files with 2 additions and 1 deletions

View File

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