Skip to content

Commit

Permalink
Provide clarification for <div>'s implicit role (mdn#4893)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwbailey authored May 12, 2021
1 parent d3c3b57 commit 4905da8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions files/en-us/web/html/element/div/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ <h2 id="Usage_notes">Usage notes</h2>
<li>The <code>&lt;div&gt;</code> element should be used only when no other semantic element (such as {{HTMLElement("article")}} or {{HTMLElement("nav")}}) is appropriate.</li>
</ul>

<h2 id="Accessibility_concerns">Accessibility concerns</h2>

The <code>&lt;div&gt;</code> element has <a href="https://www.w3.org/TR/wai-aria-1.2/#generic">an implicit role of <code>generic</code></a>, and not none. This may affect certain ARIA combination declarations that expect a direct descendant element with a certain role to function properly.

<h2 id="Examples">Examples</h2>

<h3 id="A_simple_example">A simple example</h3>
Expand Down

0 comments on commit 4905da8

Please sign in to comment.