8000 Linter Rule: No abstract roles · Issue #173 · marcoroth/herb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Linter Rule: No abstract roles #173
Open
@NotGrm

Description

@NotGrm

Rule: html-no-abstract-roles

Description

Prevent usage of WAI-ARIA abstract roles

Rationale

The HTML attribute role must never have the following values:

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

Examples

✅ Good
<div role="button"> Push it </div>
🚫 Bad
<div role="window"> Hello, world! </div>

References

Inspired by ember-template-lint

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0