You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
variable values cannot be selectors without escaping #1328
because of a fluke. - might mean maths or it might be part of a value so the value needs to be parsed properly. parsing properly we realise it isn't a css value.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Activity
lukeapage commentedon May 16, 2013
because it parses it as a css value. we do not parse for css selectors as variable values because we do not know what the variable is to be used as.
having said that maybe we should support a
selector()function and everything inside is parsed as a selector?maniqui commentedon May 21, 2013
Thanks for the answer, lukeapage, though I must admit I might not have understood it.
Let me try to rephrase the question:
Why this one works:
@somevar: .food;but this one throws an
ParseError: Unrecognised input:@somevar: .tasty-food;?
Both strings seems almost equal to me, only difference is that little hyphen on the second one, and that's enough to throw the error.
lukeapage commentedon May 28, 2013
because of a fluke.
-might mean maths or it might be part of a value so the value needs to be parsed properly. parsing properly we realise it isn't a css value.stale commentedon Nov 14, 2017
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.