collapsible.js: Fix invalid default selectors

refs #4884

(cherry picked from commit 9b3e6165ead294c6b5ee863f1b6096ded1fe3dec)
This commit is contained in:
Johannes Meyer 2022-11-03 16:41:25 +01:00
parent 817380470a
commit 7e7b592af7

View File

@ -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 '';