You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WCAG 2.1 has 3.1.2 Language of Parts (Level AA), which states that all content not in the main page's language must be marked with a language attribute. This is not happening for the language drop-down; the other-language parts are nto marked for language.
Specifications
Mastodon 4.1.0
macOS 13.2.1
Firefox 110.0
The text was updated successfully, but these errors were encountered:
Steps to reproduce the problem
Type:
The following should be translated as "Did you have boba?"
有冇波霸奶茶?
The following would reasonably be colloquially translated as "No, and I'm miserable!"
冇囉!
Expected behaviour
The tag enclosing 中文 has a lang="ZH" attribute
<div role="option" tabindex="0" data-index="zh" class="language-dropdown__dropdown__results__item" aria-selected="false">
<span class="language-dropdown__dropdown__results__item__native-name" lang="zh">中文</span>
<span class="language-dropdown__dropdown__results__item__common-name">(Chinese)</span>
</div>
The lang attribute must be at the span and not the div level, since the word "Chinese" is in English.
Actual behaviour
The tag enclosing 中文 is missing a lang attribute
<div role="option" tabindex="0" data-index="zh" class="language-dropdown__dropdown__results__item" aria-selected="false">
<span class="language-dropdown__dropdown__results__item__native-name">中文</span>
<span class="language-dropdown__dropdown__results__item__common-name">(Chinese)</span>
</div>
Detailed description
WCAG 2.1 has 3.1.2 Language of Parts (Level AA), which states that all content not in the main page's language must be marked with a language attribute. This is not happening for the language drop-down; the other-language parts are nto marked for language.
Specifications
Mastodon 4.1.0
macOS 13.2.1
Firefox 110.0
The text was updated successfully, but these errors were encountered: