Description
A heading link is present which contains both English and Chinese but will not be relayed correctly to screen reader users as required language attribute has not been specified.
WCAG Reference:
3.1.2 Language of Parts (Level AA)
Understanding Language of Parts | How to Meet Language of Parts
Issue ID: DAC_Language_of_parts_01
URL: https://beta.w3.org/membership/list/
Page title: Current Members & Testimonials
Journey 2, Step 1
There is a heading link present on the page which contains both English and Chinese; as the language has not been programmatically determined for each part respectively, the Chinese will not be announced correctly by screen reading software.
Current code ref(s): #main > div.member-list > div:nth-child(76) > div > div.not- sidebar.card__text > h2 > a
<div class="l-sidebar card card--member" data-component="card"> <div>
<div class="not-sidebar card__text">
<h2 class="card__heading"><a class="card__link"
href="http://www.cesi.cn/page/index.html">China Electronics Standardization Institute(中国电子技术标准化研究院)</a></h2>
</div>
<div class="sidebar">
<div class="logo--member"></div>
</div>
</div>
</div>
Solution:
Ensure that where links contain alternate language that the language of each part is appropriately indicated via a lang attribute.
Example:
<h2 class="card__heading">
<a class="card__link" href="http://www.cesi.cn/page/index.html">
<span> lang="en">China Electronics Standardization Institute</span>
<span lang="[ISO CODE]">(中国电子技术标准化研究院) </span>
</a>
</h2>