LeaVerou/parsel

Nesting selectors like `& > button` cannot be parsed

OrKoN opened this issue · 4 comments

Example: https://parsel.verou.me/?selector=%26+%3E+button

The reported error is:

Error: Unexpected sequence & found at index 0
    at tokenizeBy (parsel.js:97:23)
    at Module.tokenize (parsel.js:140:20)
    at tryout.oninput (VM9:17:45)

I had to read the documentation till the end before posting. It looks like I should extend the tokens list to add the support for nesting selectors.

Why did you close this? Supporting nesting selectors is a legit issue!

Yes, it definitely should be!