dai11y 06/08/2021

Your daily frequent11y newsletter, brought to you by @ChrisBAshton:

New in ARIA 1.2: ARIA IDL attributes

  • Scott O’Hara writes about the new ARIA IDL (Interface Definition Language) attributes, allowing you to set element attributes succinctly in JavaScript via foo.role = 'checkbox' and foo.ariaChecked = false. Until now, we’ve had to use setAttribute, i.e. foo.setAttribute('aria-checked', 'false').
  • This is supported in all Chromium browsers, but currently not in Firefox.
  • It’s not yet possible to set attributes in this way if they take multiple IDREFs. For example, aria-labelledby="id1 id2 id3" has no new corresponding IDL attribute yet.

Prefer longer newsletters? You can subscribe to week11y, fortnight11y or even month11y updates! Every newsletter gets the same content; it is your choice to have short, regular emails or longer, less frequent ones. Curated with ♥ by developer @ChrisBAshton.

Loading...