-
Notifications
You must be signed in to change notification settings - Fork 70
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
HTML page lang and xml:lang match - problems with 2 examples (5b7ae0) #1172
Comments
Yes, we can probably extend the applicability to test (and fail) empty tags. The prolem I see with that is that we are only matching the primary language tag, not the full string (i.e. This can maybe be solved with two expectations (1. the attributes are not empty; 2. the primary language tags match). |
Linking some research: #668 (comment) that may be relevant for this issue. Thanks for the reminder on that Mark. |
@dd8 In what scenario will inapplicable example 8 cause a screen reader to mispronounce content? I get the "unknown language" argument, but I'd like to know that causes a real-world accessibility problem. |
@WilcoFiers We've just done some testing on 10 different browser combos on macOS and Windows (Chrome, Edge, Firefox, Safari, IE11 with VO, NVDA, JAWS and Narrator). When calculating language:
Note: Firefox on macOS doesn't support language changes at all So I don't think the rule detects any real-world accessibility problems because the applicability is restricted to text/html documents (which always ignore
The above examples do behave differently if the page is served as application/xml+xhtml If the content type in applicability was changed to application/xml+xhtml then it would detect problems, although these types of page are very rare - about 0.05% of all pages, and mismatched lang/xml:lang will be even rarer: Edit: there have been updates to this adding missing detail |
And here are the test results
|
Closing because rule was deprecated in #2086 |
Inapplicable example 3
The HTML spec defines a lang attribute equal to the empty string as meaning
unknown language
- spxmll:lang=''
doesn't matchlang=fr
and should be a failure:https://html.spec.whatwg.org/multipage/dom.html#the-lang-and-xml:lang-attributes
https://act-rules.github.io/rules/5b7ae0#inapplicable-example-3
Inapplicable example 5
A lang that's only blanks behaves very differently to a lang that's the empty string. See final example on this test page:
https://qa.powermapper.com/Tests/ACT-R/primary-ext-lang.html
I think this should also be a failure because they do different things.
https://act-rules.github.io/rules/5b7ae0#inapplicable-example-5
Note: this probably affects the applicability as well
The text was updated successfully, but these errors were encountered: