ISSUE-622: Consider adding DOMStringMap Element.ariaset (to match Element.dataset for data-* attrs)
DOMStringMap Element.ariaset
Consider adding DOMStringMap Element.ariaset (to match Element.dataset for data-* attrs)
- State:
- CLOSED
- Product:
- ARIA 2.0
- Raised by:
- James Craig
- Opened on:
- 2013-10-01
- Description:
- Considering adding DOMStringMap Element.ariaset to 1.1 or 2.0 (to match Element.dataset for data-* attrs)
HTML5 defines Element.dataset. For example, you can access data-* attrs:
<div data-foo="foo" data-bar="bar"></div>
Either by the standard getAttribute method:
var value = myDiv.getAttribute('data-foo');
Or by the dataset property:
var value = myDiv.dataset.foo;
It would be convenient to use a similar construct for aria-* attrs:
var invalid = myDiv.ariaset.invalid;
- Related Actions Items:
- No related actions
- Related emails:
- No related emails
Related notes:
This fits into AOM
James Nurthen, 23 Sep 2016, 12:49:14Display change log