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:14

Display change log ATOM feed


Joanmarie Diggs <jdiggs@igalia.com>, James Nurthen <nurthen@adobe.com>, Chairs, Michael Cooper <cooper@w3.org>, Ruoxi Ran <ran@w3.org>, Staff Contacts
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: index.php,v 1.326 2018/10/13 17:29:51 vivien Exp $