Skip to content

3.1.2 Language of Parts - Computed acc name clarification + ambiguous example #4423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
missing example
  • Loading branch information
giacomo-petri authored Jun 3, 2025
commit 5ee62bba2ee59c94205b634ab299db01251f25ec
1 change: 1 addition & 0 deletions understanding/20/language-of-parts.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ <h3>Element's content used as accessible name</h3>
<p>This link may be announced with an English accent, mispronouncing "Español".</p>
<pre xml:space="preserve"><code class="language-html">&lt;a href="/es/"&gt;&lt;span lang="es"&gt;Español&lt;/span&gt;&lt;/a&gt;</code></pre>
<p>This version correctly applies the Spanish language to the element, ensuring "Español" is pronounced with a Spanish accent.</p>
<pre xml:space="preserve"><code class="language-html">&lt;a href="/es/" lang="es"&gt;&lt;span&gt;Español&lt;/span&gt;&lt;/a&gt;</code></pre>

<h3>Element's content in multiple languages used as accessible name</h3>
<p>When content includes multiple languages, it's acceptable to set the parent element to the primary language, as long as any child elements in a different language have the appropriate language set.</p>
Expand Down