web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
902 B

  1. # aria-unsupported-elements
  2. Certain reserved DOM elements do not support ARIA roles, states and properties. This is often because they are not visible, for example `meta`, `html`, `script`, `style`. This rule enforces that these DOM elements do not contain the `role` and/or `aria-*` props.
  3. ## Rule details
  4. This rule takes no arguments.
  5. ### Succeed
  6. ```jsx
  7. <!-- Good: the meta element should not be given any ARIA attributes -->
  8. <meta charset="UTF-8" />
  9. ```
  10. ### Fail
  11. ```jsx
  12. <!-- Bad: the meta element should not be given any ARIA attributes -->
  13. <meta charset="UTF-8" aria-hidden="false" />
  14. ```
  15. ## Accessibility guidelines
  16. - [WCAG 4.1.2](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value)
  17. ### Resources
  18. - [Chrome Audit Rules, AX_ARIA_12](https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_aria_12)
  19. - [DPUB-ARIA roles](https://www.w3.org/TR/dpub-aria-1.0/)