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


James Nurthen <w3c@nurthen.com>, Valerie Young <spectranaut@igalia.com>, Chairs, Daniel Montalvo <dmontalvo@w3.org>, Staff Contact
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 622.html,v 1.1 2023/05/22 16:31:58 carcone Exp $