stubbornella/csslint — Issue #237: attribute selector next to element should not produce warning
Author: stovelogic
Created: 2012-02-10 22:26:51+00:00
State: open

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."