It seems safe to presume that each accordion tab represents a thematic grouping of content, and therefore it would be semantically correct to enclose it in a <section> element:
Currently this is not possible because it breaks the keyboard navigation.
I have found out that the code needing refactoring is the $accordion selector around the document but my JQuery skills do not permit me more.
For example, changing the relevant lines to $accordion = $this.parent().parent(), I achived to navigate with the keyboard only to the first and last tab.
I would like to propose a semantic enhancement:
It seems safe to presume that each accordion tab represents a thematic grouping of content, and therefore it would be semantically correct to enclose it in a
<section>
element:Currently this is not possible because it breaks the keyboard navigation.
I have found out that the code needing refactoring is the
$accordion
selector around the document but my JQuery skills do not permit me more.For example, changing the relevant lines to
$accordion = $this.parent().parent(),
I achived to navigate with the keyboard only to the first and last tab.