Came across this nice little TIL in the qSA API:
parentNode.querySelectorAll('> *') you get an error: '> *' is not a valid selector.. That doesn't work...
Using :scope first fixes the "missing scope".
Original link: siderite.dev/[…]/queryselector-immediate-children-with-scope