[Athen] Language attribute

Sean Keegan skeegan at ccctechcenter.org
Fri Nov 9 07:56:23 PST 2018



> If a page housing an iframe already has the lang attribute applied to it,

does the attribute

> also applies to the iframe as well or would the iframe require its own

addition

> of the lang attribute?


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).

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.


>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
https://www.w3.org/TR/2008/REC-WCAG20-20081211/#meaning-other-lang-id).

Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman12.u.washington.edu/pipermail/athen-list/attachments/20181109/4c632fa2/attachment.html>


More information about the athen-list mailing list