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

restructure how selector types get inferred #7

Open
GGAlanSmithee opened this issue Nov 30, 2015 · 1 comment
Open

restructure how selector types get inferred #7

GGAlanSmithee opened this issue Nov 30, 2015 · 1 comment

Comments

@GGAlanSmithee
Copy link
Owner

We need to reconsider how to infer selector types, since there are a lot of possible combinations.

For example:

a#foo[bar="test"]

would have to be of type TypeId and AttributeExact, which won't work.

I'm thinking of doing some sort of bitflag system.

Will outline the idea after a bit of PoC:ing.

@GGAlanSmithee
Copy link
Owner Author

Also, there are another huge misstake, which is that the whole selector needs to be evaluated as one, which it doesn't right now. For example foo .bar should select all .bar elements that is a child of all foo elements, but now those gets split (I think) before even inferring their type.

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