From 8ae5563a84f4ee5db3c052fda1cbd9940d2df61b Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Mon, 10 Oct 2022 15:06:07 +0200 Subject: [PATCH] Resolve #546 --- dev/Common/Html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/Common/Html.js b/dev/Common/Html.js index 7cdd039f2..576f94ae2 100644 --- a/dev/Common/Html.js +++ b/dev/Common/Html.js @@ -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 => {