Is the details element semantically appropriate to markup an accordion?
Example:
<div class="accordion">
<details open>
<summary>Section 1</summary>
</details>
<details>
<summary>Section 2</summary>
</details>
<details>
<summary>Section 3</summary>
</details>
</div>
I ask this question because the spec isn't very clear about its usage. It just states the details element is a disclosure widget. I certainly don't want to use the element for something that it's not meant to be.
EDIT
Would something like this be better suited semantically?
<article role="tablist">
<header role="tab" aria-expanded>Section 1</header>
<div role="tabpanel">
</div>
<header role="tab">Section 2</header>
<div role="tabpanel">
</div>
<header role="tab">Section 3</header>
<div role="tabpanel">
</div>
</article>
Thanks!