Skip to content
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

add lang clarification to translatable attributes section. #1690

Merged
merged 5 commits into from
Apr 15, 2022
Merged
Changes from all commits
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
7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10319,9 +10319,10 @@ <h4>Example Attribute Usage</h4>
</section>
</section>
</section>
<section>
<h2>Translatable States and Properties</h2>
<p>The HTML specification states that other specifications can define <a href="https://html.spec.whatwg.org/multipage/dom.html#translatable-attributes">translatable attributes</a>. In order to be understandable by assistive technology users, the values of the following <a>states</a> and <a>properties</a> are <a href="https://html.spec.whatwg.org/multipage/dom.html#translatable-attributes">translatable attributes</a> and should be translated when a page is localized:</p>
<section data-cite="HTML">
<h2>Translatable Attributes</h2>
<p>The HTML specification states that other specifications can define <a data-cite="html/dom.html#translatable-attributes">translatable attributes</a>. The source translation language of each attribute value is defined by use of the [^html-global/lang^] attribute on the element or its ancestor elements.</p>
<p>To be understandable by assistive technology users, the values of the following <a>states</a> and <a>properties</a> are <a data-cite="html/dom.html#translatable-attributes">translatable attributes</a> and should be translated when a page is localized:</p>
<ul>
<li><pref>aria-label</pref></li>
<li><pref>aria-placeholder</pref></li>
Expand Down