Skip to content

attribute selector next to element should not produce warning #237

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

Closed
stovelogic opened this issue Feb 10, 2012 · 2 comments
Closed

attribute selector next to element should not produce warning #237

stovelogic opened this issue Feb 10, 2012 · 2 comments
Milestone

Comments

@stovelogic
Copy link

When using this attribute selector:
input[type="text"] {color: blue;}

I receive the warning:
"Disallow unqualified attribute selectors"

I don't believe this is accurate. I thought that if you did something like:
[id="myId"] {color: blue;}
That this would be bad since it would be the equivalent of the * global selector.

But in this case:
input[type="text"] {color: blue;}
the attribute selector is not "unqualified"

Nicholas Z. also said in a forum post: http://groups.google.com/group/css-lint/msg/47fb54214fa4616c
"You definitely should use input[type=text]. This shouldn't cause a warning, but if it does, please file an issue."

@zachleat
Copy link
Contributor

csslint.net is still exhibiting this behavior. I assume you guys haven't deployed the new code there yet? Just a friendly heads up.

@nzakas
Copy link
Contributor

nzakas commented Feb 23, 2012

yes, there hasn't been a deployment with this fix yet.

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

3 participants