Many people don't know the Element.querySelector()
and Element.querySelectorAll()
behaves differently than most common JavaScript DOM libraries, details.
Got the idea here
const inner = element.querySelectorAll('.outer .inner');
const inner = document.querySelectorAll('.outer .inner');
const inner = element.querySelectorAll(':scope .outer .inner');
I'm not sure about these, they are never going to get wrong result.
const inner = element.querySelectorAll('.a');
const inner = element.querySelectorAll('.a + .b');
Should we enforce them consistently, or only check descendant combinator and child combinator?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too