From 65722d7143af308c747e88cfd6ea4bbfcab379ad Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Sat, 21 Dec 2024 10:31:01 +0200 Subject: [PATCH] ol large number fix --- client/src/view-helper.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/view-helper.js b/client/src/view-helper.js index 5a5e4d90fa..55de978265 100644 --- a/client/src/view-helper.js +++ b/client/src/view-helper.js @@ -72,6 +72,10 @@ class ViewHelper { node.targetBlank = false; } } + + if (node instanceof HTMLOListElement && node.start && node.start > 99) { + node.removeAttribute('start'); + } }); DOMPurify.addHook('afterSanitizeAttributes', function (node) {