Add support for more selectors in the CSSSelectorParser #37

Open
opened 8 months ago by ncc1988 · 0 comments
ncc1988 commented 8 months ago
Owner

The CSSSelectorParser created during the fix of bug #3 can only parse the most common selectors, excluding child and sibling selectors. There are a lot more selectors specified in Selectors Level 3:

https://drafts.csswg.org/selectors-3/

TODO:

  • Any element selector support (*)
  • More attribute selectors:
    • "Value matches word" selector (~=)
    • "Value starts with" selector (^=)
    • "Value ends with" selector ($=)
    • "Value contains" selector (*=)
    • "Value is inside a hypen-separated list" selector (|=)
  • Pseudo class selectors
    • Simple pseudo classes (root, empty, link, visited, active, focus, hover, ...)
    • Pseudo classes with arguments ("nth-" Group of selectors, not, lang, ...)
  • Child element selector (>)
  • Immediate sibling selector (+)
  • Next sibling selector (~)
The CSSSelectorParser created during the fix of bug #3 can only parse the most common selectors, excluding child and sibling selectors. There are a lot more selectors specified in Selectors Level 3: https://drafts.csswg.org/selectors-3/ TODO: - [ ] Any element selector support (\*) - [ ] More attribute selectors: - [ ] "Value matches word" selector (~=) - [ ] "Value starts with" selector (^=) - [ ] "Value ends with" selector ($=) - [ ] "Value contains" selector (\*=) - [ ] "Value is inside a hypen-separated list" selector (|=) - [ ] Pseudo class selectors - [ ] Simple pseudo classes (root, empty, link, visited, active, focus, hover, ...) - [ ] Pseudo classes with arguments ("nth-" Group of selectors, not, lang, ...) - [ ] Child element selector (>) - [ ] Immediate sibling selector (+) - [ ] Next sibling selector (~)
ncc1988 changed title from Add spuoort for more selectors in the CSSSelectorParser to Add support for more selectors in the CSSSelectorParser 8 months ago
ncc1988 added the
TODO
enhancement
wiki-doc-TODO
labels 8 months ago
Sign in to join this conversation.
Loading…
There is no content yet.