Skip to content
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

Make sure element() and dom() can coexist in the same ruleset #197

Open
erikrose opened this issue Mar 20, 2020 · 0 comments
Open

Make sure element() and dom() can coexist in the same ruleset #197

erikrose opened this issue Mar 20, 2020 · 0 comments

Comments

@erikrose
Copy link
Contributor

erikrose commented Mar 20, 2020

without crashing to the tune of "Hey, I expected an element and got a whole document".

If it's a problem, one possible solution would be to make element() work on documents: just grab the root element. Maybe that's a good idea anyway—or maybe it's an awful idea because it would trade early failure for late.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant