-
Notifications
You must be signed in to change notification settings - Fork 771
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
New rule: xml-lang #531
Comments
Few suggestions for this one too:
|
Which other elements do you mean @WilcoFiers ? Could you elaborate on this one? Are you thinking about the phrases in text in other languages? |
@jmucha I mean just any other element. Any element which has both |
Ok, got it, thank you. We can make a separate rule for the language of parts then. |
Any ideas on how to solve a problem with testing the rule when there arises an error stating that html element cannot be added to the div element? Do you have any experience how to approach this?
|
I'd say that might have to be an integration test where you can control the whole DOM, as our unit tests are already inside of a document. Or use an element other than |
Believe this PR #999 tackles the above issue. |
SC3-1-1-xml-lang
This test checks the value of the
xml:lang
attribute and the presence of thelang
attribute.Tags: wcag2a, wcag311, cat.language
Selector
Select the root if it has both attributes
html[xml:lang][lang]
.Checks
language/xml-lang
xml:lang
attribute is equal to thelang
attribute. If true, pass; else 2.language/xml-lang-dialect
<html lang="en" xml:lang="en-US">
<html xml:lang="nl" lang="nl-BE">
If true, pass; else fail.
The text was updated successfully, but these errors were encountered: