Add documentation

pull/6978/head
mka_882@yahoo.com 5 years ago committed by tanhauhau
parent 4af29a9a55
commit e954af2984

@ -98,6 +98,18 @@ Enforce img alt attribute does not contain the word image, picture, or photo. Sc
--- ---
### `a11y-incorrect-aria-attribute-type`
Enforce that only the correct type of value is used for aria attributes. For example, `aria-hidden`
should only receive a boolean or `undefined`.
```sv
<!-- A11y: The value of 'aria-hidden' must be exactly one of true, false, or undefined -->
<div aria-hidden="yes"/>
```
---
### `a11y-invalid-attribute` ### `a11y-invalid-attribute`
Enforce that attributes important for accessibility have a valid value. For example, `href` should not be empty, `'#'`, or `javascript:`. Enforce that attributes important for accessibility have a valid value. For example, `href` should not be empty, `'#'`, or `javascript:`.

Loading…
Cancel
Save