{"action":"created","issue":{"url":"https://api.github.com/repos/auto-wcag/auto-wcag/issues/76","repository_url":"https://api.github.com/repos/auto-wcag/auto-wcag","labels_url":"https://api.github.com/repos/auto-wcag/auto-wcag/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/auto-wcag/auto-wcag/issues/76/comments","events_url":"https://api.github.com/repos/auto-wcag/auto-wcag/issues/76/events","html_url":"https://github.com/auto-wcag/auto-wcag/issues/76","id":306417268,"number":76,"title":"SC3-1-1-html-lang-valid","user":{"login":"jkodu","id":20978252,"avatar_url":"https://avatars3.githubusercontent.com/u/20978252?v=4","gravatar_id":"","url":"https://api.github.com/users/jkodu","html_url":"https://github.com/jkodu","followers_url":"https://api.github.com/users/jkodu/followers","following_url":"https://api.github.com/users/jkodu/following{/other_user}","gists_url":"https://api.github.com/users/jkodu/gists{/gist_id}","starred_url":"https://api.github.com/users/jkodu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkodu/subscriptions","organizations_url":"https://api.github.com/users/jkodu/orgs","repos_url":"https://api.github.com/users/jkodu/repos","events_url":"https://api.github.com/users/jkodu/events{/privacy}","received_events_url":"https://api.github.com/users/jkodu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-03-19T11:04:35Z","updated_at":"2018-04-12T17:02:10Z","closed_at":"2018-03-29T10:49:42Z","author_association":"COLLABORATOR","body":"---\r\nname: SC3-1-1-html-lang-valid\r\n\r\ndescription:\r\n- This rule checks the validity of the `xml:lang` and/or the `lang` attribute, and that it conforms to [BCP 47](https://www.ietf.org/rfc/bcp/bcp47.txt).\r\n\r\nsuccess_criterion:\r\n- 3.1.1\r\n\r\ntest_aspects:\r\n- DOM Tree: The tree that HTML is parsed into.\r\n\r\nauthors:\r\n- Jey Nandakumar\r\n---\r\n\r\n## Test Procedure\r\n\r\n### Applicability\r\n\r\nThe root node of the page, if it is an `<html>` element with a `lang` and/or `xml:lang` attribute.\r\n\r\n### Expectation\r\n\r\n- The value of the `lang` and/or `xml:lang` attribute conforms to [BCP 47](https://www.ietf.org/rfc/bcp/bcp47.txt).\r\n\r\n## Assumptions\r\n\r\n*There are currently no assumptions*\r\n\r\n## Accessibility Support\r\n\r\nThis rule is only applicable in a scenario where assistive technologies are inconsistent about how they determine the language of the page.\r\n\r\n## Background\r\n\r\n- https://www.w3.org/TR/2014/NOTE-WCAG20-TECHS-20140408/H57\r\n- https://www.ietf.org/rfc/bcp/bcp47.txt\r\n- https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang\r\n- https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xml:lang\r\n- https://www.w3.org/TR/WCAG20-TECHS/H57.html\r\n\r\n## Test Cases\r\n\r\n### Passes\r\n\r\n```html\r\n<html lang=\"fr\">\r\n```\r\n\r\n```html\r\n<html xml:lang=\"fr\">\r\n```\r\n\r\n```html\r\n<html xml:lang=\"fr\" lang=\"fr\">\r\n```\r\n\r\n### Failed\r\n\r\n```html\r\n<html lang=\"xyz\">\r\n```\r\n\r\n```html\r\n<html xml:lang=\"xyz\">\r\n```\r\n\r\n```html\r\n<html lang=\"fr\" xml:lang=\"xyz\">\r\n```\r\n\r\n### Inapplicable\r\n\r\n```html\r\n<svg lang=\"fr\">\r\n```\r\n\r\n```html\r\n<svg xml:lang=\"fr\">\r\n```"},"comment":{"url":"https://api.github.com/repos/auto-wcag/auto-wcag/issues/comments/380876283","html_url":"https://github.com/auto-wcag/auto-wcag/issues/76#issuecomment-380876283","issue_url":"https://api.github.com/repos/auto-wcag/auto-wcag/issues/76","id":380876283,"user":{"login":"cpandhi","id":8438674,"avatar_url":"https://avatars2.githubusercontent.com/u/8438674?v=4","gravatar_id":"","url":"https://api.github.com/users/cpandhi","html_url":"https://github.com/cpandhi","followers_url":"https://api.github.com/users/cpandhi/followers","following_url":"https://api.github.com/users/cpandhi/following{/other_user}","gists_url":"https://api.github.com/users/cpandhi/gists{/gist_id}","starred_url":"https://api.github.com/users/cpandhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpandhi/subscriptions","organizations_url":"https://api.github.com/users/cpandhi/orgs","repos_url":"https://api.github.com/users/cpandhi/repos","events_url":"https://api.github.com/users/cpandhi/events{/privacy}","received_events_url":"https://api.github.com/users/cpandhi/received_events","type":"User","site_admin":false},"created_at":"2018-04-12T17:02:10Z","updated_at":"2018-04-12T17:02:10Z","author_association":"COLLABORATOR","body":"@jribbens agree, inline change in language is covered under a different SC 3.1.2 and a different rule. I am actually taking about the lang on the root html for the default language of the page (SC 3.1.1)  which is what this rule is checking for. Do we need another expectation that the value of the lang attribute actually matches the default language of the page?"}}
{"actor":{"display_login":"cpandhi"}}