Skip to content
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

FINAL: SC3-1-1-html-has-lang #107

Merged
merged 11 commits into from Jun 25, 2018
Merged

FINAL: SC3-1-1-html-has-lang #107

merged 11 commits into from Jun 25, 2018

Conversation

jeeyyy
Copy link
Collaborator

@jeeyyy jeeyyy commented Apr 27, 2018

Copy link
Collaborator

@Brynanders Brynanders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure we need the Accessibility Support note if this rule is only checking if there is a lang and xml:lang. In otherwise the note is about using both lang and xml:lang but the rule just cares if one or the other is present.

@@ -25,13 +25,15 @@ The root element of the page, if it is an `html` element.

The test target has a `lang` or `xml:lang` attribute.

**Note**: HTML 5 recommends using `lang` instead of `xml:lang`. This is not known to impact accessibility, which is why use of both is permitted by this rule.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"HTML 5" should be "HTML5".

Brynanders
Brynanders previously approved these changes May 3, 2018
kasperisager
kasperisager previously approved these changes May 3, 2018
Brynanders
Brynanders previously approved these changes May 3, 2018
- Added test cases for empty lang / xml:lang attributes.
@jeeyyy jeeyyy dismissed stale reviews from Brynanders and kasperisager via 67ffb88 May 7, 2018 09:15
- added passed test cases
Brynanders
Brynanders previously approved these changes May 7, 2018
@jeeyyy jeeyyy requested review from ShadowBB and cpandhi May 9, 2018 09:06
kasperisager
kasperisager previously approved these changes May 9, 2018
@jeeyyy jeeyyy requested a review from WilcoFiers May 9, 2018 12:44

### Expectation

The test target has a `lang` or `xml:lang` attribute.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add non-empty here like in the description:
"The test target has a [non-empty][] lang or xml:lang attribute."

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed.

```html
<html xml:lang="en" lang="">
```

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest adding a passed test case with a non-valid value too, to make clear that we don't test the validity of the values in this rule, e.g.:

<html lang="xyz">
<html xml:lang="xyz">

Copy link
Collaborator

@annethyme annethyme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review my comments before merging.

@@ -0,0 +1,94 @@
---
name: Existence of HTML Lang attribute
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not "HTML has lang attribute"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Smart 🥇


### Expectation

The test target has a `lang` or `xml:lang` attribute.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed.

@jeeyyy jeeyyy dismissed stale reviews from kasperisager and Brynanders via 2539269 May 22, 2018 13:48
@jeeyyy
Copy link
Collaborator Author

jeeyyy commented May 22, 2018

Changes done. Review again.

@jeeyyy jeeyyy dismissed stale reviews from WilcoFiers and annethyme June 4, 2018 06:56

Changes implemented. Review again.

@jeeyyy jeeyyy added this to Final (Needs Review) in Rules Progress Overview Jun 11, 2018
@jeeyyy jeeyyy moved this from Final (Needs Review) to Auto-Wcag (Pre Publish Review) in Rules Progress Overview Jun 11, 2018
@annethyme annethyme moved this from Auto-Wcag (Pre Publish Review) to Final (Needs Review) in Rules Progress Overview Jun 13, 2018
@jeeyyy jeeyyy merged commit 4be67b9 into master Jun 25, 2018
@jeeyyy jeeyyy deleted the rule-SC3-1-1-html-has-lang branch June 25, 2018 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Rules Progress Overview
Final (Needs Review)
Development

Successfully merging this pull request may close these issues.

None yet

6 participants