What fresh hell is THIS now? - Patrick Lauke
role=tab|tablist|etc
?
[karlgroves] >I'm one of those boring people that doesn't drink alcohol.
But he does rails like he’s Pablo Escabar
function getSibling (event, direction) { var tab = event.currentTarget; var parent = tab.parentNode; var sibling = null; // nodeType === 1 is a element_node switch (direction) { case 'next': sibling = parent.nextSibling; while (sibling != null && sibling.nodeType != 1) { sibling = sibling.nextSibling; }; break; case 'prev': sibling = parent.previousSibling; while (sibling != null && sibling.nodeType != 1) { sibling = sibling.previousSibling; }; break; }; if (sibling != null) { return sibling.querySelector('[role="tab"]'); }; };
role=tab
's and work with that…
<div>
that’s set to aria-live=“assertive”
and aria-atomic=“false”
. I’m appending content to the <div>
and VoiceOver (on latest El Cap) announces the content of the entire <div>
, rather than just the what was added. Looking at https://www.w3.org/WAI/PF/aria-practices/#liveprops this doesn’t seem to be correct. Or am I missing something?