Description
This rule verifies if element with attribute `contenteditable` have defined also following attributes:
aria-multiline
aria-labelledby
oraria-label
Context
When aria-multiline="true"
is set then Assistive Technologies informs the user that the textbox supports multi-line input, with the expectation that Enter or Return will create a line break rather than submitting the form.
aria-label
here is recommended to specify a string to be used as the accessible label. Eventually, aria-labelledby
can be used to specify the id
of another element in the DOM as an element’s label.
How to fix it
The rule passes when all of the following cases are fulfilled:
- Attribute
contenteditable
is defined aria-label
oraria-labelledby
is defined. Note that the rule does not validatearia-labelledby
ids if the referenced elements exists.
Techniques
Not Applicable