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
"Links with identical accessible names have equivalent purpose" (b20e66): Prepare for TF review #1463
Conversation
I would like my addition to passed example 11 to be confirmed, as was not clear to me... Despite reading the definitions (I tried to make it less technical for others like me!) I might have over described what may seem obvious, to clarify the reason for passes/fails as per act-rules#1248
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work 🎉 . A few "polishing" comments.
@@ -332,7 +332,7 @@ Both links resolve to [same resource][] after redirect, but the redirect is not | |||
|
|||
#### Inapplicable Example 1 | |||
|
|||
These `a` and `area` elements have no `href` attribute. | |||
These `a` and `area` elements have no `href` attribute. These are not valid links. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These `a` and `area` elements have no `href` attribute. These are not valid links. | |
These `a` and `area` elements have no `href` attribute. Thus, they do not have a role of `link`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure on this as the 'a' and 'area' are the role of link, but the 'href' is where it goes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the mappings: https://www.w3.org/TR/html-aam-1.0/#html-element-role-mappings (direct links to the elements don't work well… you need to scroll… 😞 ), the a
and area
elements have no role when there is no href
attribute.
So, in that case, there is no element with a role of link
(or inheriting from link
), hence the rule is not applicable. I say, "role of link
" is the technical term for "valid link" 😀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case I think we should amend it again, as the role side is still a bit technical, so maybe:
"These a
and area
elements have no href
attribute. Thus, they do not have a role of link
making the links not work as expected."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"not work as expected" is a fairly strong statement, given that there are valid cases for a
without href
: https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-a-element (see the second paragraph after the green box + the first example). So, it might be a deliberate choice of the author to omit the href
attribute, and the element would work exactly as expected.
(+ see the example at https://html.spec.whatwg.org/multipage/image-maps.html#image-maps for an area
without href
where the lack of href
is exactly what is intended, namely to make the "hole" in the red square not clickable)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So in plain text how would you define a link without a role?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, that's the point. It's not a link.
It's an a
/area
element without an href
attribute and therefore not a link (role has little to do here, it's not a link for ARIA (no role), but it's not a link for HTML in the first place (not clickable, …)
Maybe "Thus they are not links and do not have a role of link
"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes - that would work 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Jym77, can I update the last suggestion to the change to commit? Or is it something for you to change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do it.
I normally prefer to let one person handle all changes on a PR, so that there is clear responsibility (not in term of "who to blame?", but rather in avoiding the "who should do that?" and streamlining the process).
@HelenBurge : good work on your first PR 🥇 Some (meta)-tips about Github and how we use it for ACT rules (don't be scared, it is a lot of info I'm dumping here and it will take time to absorb all of it…)
Sorry again for that much info in one go 🤓 👨🏫 It's good work. Don't worry about the administrative details… |
Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback (I have not been able to do as much as suggested as only have basic permissions!) I like most except for the one talking about an href being the link role.
@@ -332,7 +332,7 @@ Both links resolve to [same resource][] after redirect, but the redirect is not | |||
|
|||
#### Inapplicable Example 1 | |||
|
|||
These `a` and `area` elements have no `href` attribute. | |||
These `a` and `area` elements have no `href` attribute. These are not valid links. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure on this as the 'a' and 'area' are the role of link, but the 'href' is where it goes.
Amended the rule "Inapplicable Example 1" from feedback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Polishing the look.
Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>
Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more tiny change.
Co-authored-by: Wilco Fiers <WilcoFiers@users.noreply.github.com>
I would like my addition to passed example 11 to be confirmed, as was not clear to me... Despite reading the definitions (I tried to make it less technical for others like me!)
I might have over described what may seem obvious, to clarify the reason for passes/fails as per #1248
<< Describe the changes >>
Closes issue(s):
Need for Final Call:
<< choose one of the following and remove the rest >>
<< check https://act-rules.github.io/pages/design/process/#final-call-aka-call-for-consensus-cfc >>
This can be merged with 1 approval << choose reason: editorial changes to website/test code, adding new contributor, other (explain). >>
This will not require a Final Call << choose reason(s): editorial changes, changes to assumptions, background, accessibility support, change to website/test code (not rule), other (explain). >>
This will require a 1 week Final Call << small changes affecting a small number of test cases, if in doubt do not use this. >>
This will require a 2 weeks Final Call << new rule, or substantial changes affecting a large number of test cases, if in doubt, use this. >>
Pull Request Etiquette
When creating PR:
develop
branch (left side).After creating PR:
Rule
,Definition
orChore
.When merging a PR:
How to Review And Approve