Philipp Partosch 46a936d7de added all files to project | 2 years ago | |
---|---|---|
.. | ||
README.md | 2 years ago | |
index.js | 2 years ago |
Specify a list of disallowed attribute names.
[class~="foo"] {}
/** ↑
* This name */
array|string|regex
: ["array", "of", /names/ or "regex"]|"name"|/regex/
Given:
["class", "id", "/^data-/"]
The following patterns are considered violations:
[class*="foo"] {}
[id~="bar"] {}
[data-foo*="bar"] {}
The following patterns are not considered violations:
[lang~="en-us"] {}
[target="_blank"] {}
[href$=".bar"] {}