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

Less can't parse case-insensitive attribute selector #467

Closed
ccoenen opened this issue Feb 28, 2018 · 3 comments
Closed

Less can't parse case-insensitive attribute selector #467

ccoenen opened this issue Feb 28, 2018 · 3 comments

Comments

@ccoenen
Copy link

ccoenen commented Feb 28, 2018

I have attributes selected like this:
.entry[data-title="active" i] {color: red}

less (3.0.1) will complain:

    Expected ']' got 'i'
          in ....filename.... (line 3, column 64)

But the "i" (or "I") is according to spec, see MDN on Attribute Selectors, and is widely supported

I would also be satisfied with something like an uprocessed region or something like that.

@seven-phases-max
Copy link
Member

seven-phases-max commented Mar 1, 2018

Note this is the issue tracker of the Less documentation. For Less language and compiler bugs/uses use https://github.com/less/less.js/issues.

The quick answer would be: for a workaround use either (inline) (= "unprocessed file") or move the exotic value to a variable (escape if necessary): Example.

@seven-phases-max
Copy link
Member

Closing as "wrong-repo" (and duplicate of less/less.js#3027).

@seven-phases-max seven-phases-max changed the title lesscss can't parse case-insensitive attribute selector Less can't parse case-insensitive attribute selector Mar 1, 2018
@ccoenen
Copy link
Author

ccoenen commented Mar 1, 2018

whoops! Thanks for pointing out the right issue :-)

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

2 participants