New Jul 8, 2026

querySelector immediate children with :scope [link]

Top Front-end Bloggers All from remy sharp's b:log View querySelector immediate children with :scope [link] on remysharp.com

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

Originally published on Remy Sharp's b:log

Scroll to top