Skip to content

attribute selector next to element should not produce warning #237

@stovelogic

Description

@stovelogic

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions