Skip to content

Files

Latest commit

 

History

History
48 lines (33 loc) · 706 Bytes

selector-attribute-name-disallowed-list.md

File metadata and controls

48 lines (33 loc) · 706 Bytes

Pattern: Use of disallowed attribute name

Issue: -

Description

Specify a list of disallowed attribute names.

    [class~="foo"] {}
/**  ↑
 * This name */

Examples

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"] {}

Further Reading