-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
html
isn't the root of the document
#162
Comments
I'm running into this issue. I'm trying to write code that's portable between jQuery and cheerio; and it's becoming difficult, because I can't find a portable and performant way to acquire the root element. Cheerio wants |
@ELLIOTTCABLE How about |
@fb55 that's what I'm doing right now, but I tend to want to write “correct” code. What I'm truly looking for here is to acquire the root of any document it may be processing, and that seems to be too hard-coded for my tastes. Make sense? Either way, it's something worth fixing, even if there's a passable way around it like that. |
Resolved via commit 7c07fac |
This actually isn't fixed. CSSselect's |
fb55/css-select#8 should be handled here. The issue is that selectors such as
* html
match elements. This won't be fixed in CSSselect, so I'm moving it here.The text was updated successfully, but these errors were encountered: