1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 23:12:55 +00:00

Shallow clone li parent

This commit is contained in:
M66B 2022-05-23 09:12:15 +02:00
parent adea92240f
commit b2f7c8a329

View file

@ -1312,7 +1312,7 @@ public class HtmlHelper {
"ol".equals(child.nodeName()) || "ul".equals(child.nodeName()))
parent.before(child);
else
parent.before(document.createElement("li").appendChild(child));
parent.before(parent.shallowClone().appendChild(child));
}
parent.remove();
}