Successfully contributed a new rule to Open WC's `eslint-plugin-lit-a11y`.
The rule is`valid-html` and ensures that a `lang` attribute is present in all `html` elements. The value passed through must also be BCP compliant.
Missing document language was the 6th most common accessibility error according to the WebAIM Millions research. More details can be found here
https://github.com/open-wc/open-wc/pull/2282
https://a11y.coffee/quick-wins/#6-missing-document-language
The rule is`valid-html` and ensures that a `lang` attribute is present in all `html` elements. The value passed through must also be BCP compliant.
Missing document language was the 6th most common accessibility error according to the WebAIM Millions research. More details can be found here
https://github.com/open-wc/open-wc/pull/2282
https://a11y.coffee/quick-wins/#6-missing-document-language