This commit is contained in:
the-djmaze 2022-10-10 15:06:07 +02:00
parent 036bac7914
commit 8ae5563a84

View file

@ -486,7 +486,7 @@ export const
parent = node,
ordered = 'OL' == node.tagName,
i = 0;
while ((parent = parent?.parentNode?.closest('ol,ul'))) {
while ((parent = parent?.parentNode?.closest?.('ol,ul'))) {
prefix = ' ' + prefix;
}
node.querySelectorAll(':scope > li').forEach(li => {