Skip to content

Files

Latest commit

 

History

History
45 lines (30 loc) · 524 Bytes

selector-attribute-operator-whitelist.md

File metadata and controls

45 lines (30 loc) · 524 Bytes

Pattern: Use of non-whitelisted 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"] {}