Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 895 Bytes

File metadata and controls

43 lines (29 loc) · 895 Bytes

ember/template-no-invalid-aria-attributes

Disallow invalid ARIA attributes. Only use valid ARIA attributes as defined in the ARIA specification.

Rule Details

This rule validates that only standard ARIA attributes are used on elements.

Examples

Examples of incorrect code for this rule:

<template>
  <div aria-fake="value">Content</div>
</template>

<template>
  <div aria-invalid-attr="value">Content</div>
</template>

Examples of correct code for this rule:

<template>
  <div aria-label="Label">Content</div>
</template>

<template>
  <div aria-hidden="true">Content</div>
</template>

<template>
  <div aria-describedby="description-id">Content</div>
</template>

References