Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 644 Bytes

no-abstract-roles.md

File metadata and controls

36 lines (26 loc) · 644 Bytes

no-abstract-roles

✅ The extends: 'recommended' property in a configuration file enables this rule.

The HTML attribute role must never have the following values:

  • command
  • composite
  • input
  • landmark
  • range
  • roletype
  • section
  • sectionhead
  • select
  • structure
  • widget
  • window

Examples

This rule forbids the following:

<div role="window"> Hello, world! </div>

This rule allows the following:

<div role="button"> Push it </div>

References