We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xin Chao,
This doesn't work:
https://github.com/phuocng/frontend-tips/blob/main/contents/select-the-direct-children-of-an-element.mdx
Chrome says about it: "'> *' is not a valid selector."
But you can instead use the :scope CSS pseudo-class as the left side of ">" operator:
let parentElement = getElementById("parent"); parentElement.querySelectorAll(":scope > .foo");
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Xin Chao,
This doesn't work:
https://github.com/phuocng/frontend-tips/blob/main/contents/select-the-direct-children-of-an-element.mdx
Chrome says about it: "'> *' is not a valid selector."
But you can instead use the :scope CSS pseudo-class as the left side of ">" operator:
The text was updated successfully, but these errors were encountered: