mskr
@mskr
Javascript tip: In order to get direct child of some element using querySelector()/querySelectorAll() API you can use element.querySelector(':scope > .selector'). :scope pseudo-class ensures that the selector is applied to current element.
0 reply
1 recast
3 reactions