collapsible.js: Fix invalid default selectors

refs #4884
This commit is contained in:
Johannes Meyer 2022-11-03 16:41:25 +01:00
parent 4d0e42787a
commit 9b3e6165ea
1 changed files with 2 additions and 2 deletions

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