<div dir="ltr"><div dir="ltr"><div dir="ltr">> If a page housing an iframe already has the lang attribute applied to it, does the attributeĀ </div><div dir="ltr">> also applies to the iframe as well or would the iframe require its own addition</div><div dir="ltr">> of the lang attribute?<br></div><div dir="ltr"><br></div><div dir="ltr">The intended behavior of user agents (e.g., browsers) regarding the Lang attribute is to look to the nearest ancestor element to determine this value. So, for an <iframe>, the expectation would be that if the <iframe> source did not have an Lang attribute, then this value would be inherited from the original page (provided that was set).<br></div><div dir="ltr"><div><br></div><div>While this would not be an issue for the entire page content all in the same language, it could be problematic if the <iframe> content was in a different language compared to the original page. In that situation, the inherited attribute would be incorrect.</div><div><br></div><div>From an accessibility perspective, if there was a change in the language from the original page to the <iframe> content and the <iframe> content did not specifically denote a new Lang attribute, then I would see that as a failure of WCAG 2.0, 3.1.2 Language of Parts (seeĀ <a href="https://www.w3.org/TR/2008/REC-WCAG20-20081211/#meaning-other-lang-id">https://www.w3.org/TR/2008/REC-WCAG20-20081211/#meaning-other-lang-id</a>).</div><div><br></div><div>Sean</div><div><br></div></div></div></div>