Skip to content

Files

Latest commit

 

History

History
49 lines (32 loc) · 732 Bytes

selector-attribute-operator-allowed-list.md

File metadata and controls

49 lines (32 loc) · 732 Bytes

Pattern: Use of non-allowed-listed attribute operator

Issue: -

Description

Specify a whitelist of allowed attribute operators.

Examples

array|string: ["array", "of", "operators"]|"operator"

Given:

[ "=", "|=" ]

The following patterns are considered violations:

[class*="test"] {}
[title~="flower"] {}
[class^="top"] {}

The following patterns are not considered violations:

[target] {}
[target="_blank"] {}
[class|="top"] {}

Further Reading