You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 weeks ago | |
|---|---|---|
| .. | ||
| README.md | 2 weeks ago | |
| index.js | 2 weeks ago | |
README.md
selector-attribute-quotes
Require or disallow quotes for attribute values.
[target="_blank"] {}
/** ↑ ↑
* These quotes */
The fix option can automatically fix most of the problems reported by this rule.
Options
string: "always"|"never"
"always"
Attribute values must always be quoted.
The following patterns are considered violations:
[title=flower] {}
[class^=top] {}
The following patterns are not considered violations:
[title] {}
[target="_blank"] {}
[class|="top"] {}
[title~='text'] {}
[data-attribute='component'] {}
"never"
Attribute values must never be quoted.
The following patterns are considered violations:
[target="_blank"] {}
[class|="top"] {}
[title~='text'] {}
[data-attribute='component'] {}
The following patterns are not considered violations:
[title] {}
[title=flower] {}
[class^=top] {}