stubbornella/csslint — Issue #240: Buggy Rule: Avoid unqualified attribute selectors
Author: jameswilson
Created: 2012-02-16 05:25:31+00:00
State: open

The rule proposed here: https://github.com/stubbornella/csslint/issues/218 is broken.

Orignal request:

Apparently, `[type="..."]` is quite a bit slower than `input[type="..."]` because the former acts like a universal selector. Perhaps a rule to flag this would be useful?

Error:

On the live site (csslint.net) both `input[type=submit]` and `input[type="submit"]` are being incorrectly flagged with this rule.

This bug report was requested to be created as a separate issue, instead of simply reopening the original here:
https://github.com/stubbornella/csslint/issues/218#issuecomment-3879429