From 9b3e6165ead294c6b5ee863f1b6096ded1fe3dec Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 3 Nov 2022 16:41:25 +0100 Subject: [PATCH] collapsible.js: Fix invalid default selectors refs #4884 --- public/js/icinga/behavior/collapsible.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/icinga/behavior/collapsible.js b/public/js/icinga/behavior/collapsible.js index 1a46cbeee..c0b5349e3 100644 --- a/public/js/icinga/behavior/collapsible.js +++ b/public/js/icinga/behavior/collapsible.js @@ -298,9 +298,9 @@ } if (collapsible.tagName === 'TABLE') { - return '> tbody > tr'; + return ':scope > tbody > tr'; } else if (collapsible.tagName === 'UL' || collapsible.tagName === 'OL') { - return '> li:not(.collapsible-control)'; + return ':scope > li:not(.collapsible-control)'; } return '';