-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
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
thead
and tbody
are being ignored when querying its table row element
#956
Comments
Yeah, this is how |
The confusion here is that the expectation is that However, this is not the case. Given the docs on how Element.querySelector works, the entire document is matched against the query, and then it filters all matched elements to find those that are decedents of the Thus, the first element that satisfies |
@DV8FromTheWorld that is a fantastic explanation! This can be closed from my side then. Thank you! |
I am not sure if this is the right place to report this. I came across this weird behavior and wonder if it is the desired or not.
Given I have the following HTML structure:
There seems to be a funky behavior when trying to query the first row cell from the inner vs outer table:
Is this expected?
The text was updated successfully, but these errors were encountered: