You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test procedure for Technique H2 may have a typo that makes it invalid #1694
The Procedure says
For each a applying this technique:
Check that every img element contained within the a element has a null value set for its alt attribute.
Check that the a element contains an img element that has either a null alt attribute value or a value that supplements the link text and describes the image
This seem contradictory. This test need to be updated to make the intent more clear.
The first check could be removed.
Alternatively, the first part of the second check could be removed and both checks could be connected not with an AND but with an OR
Perhaps another check should be added, derived from the description of H2: Check that a link consisting of text and icon does not consist of two separate links in the source code (however, there seems to be no SC that explicitly prohibits this)..
Also, I would design example 2 better, because an output of "home page icon Go to the home page" is not useful (and possibly violates SC 2.4.6)
Hi @JAWS-test I agree with your your suggestions for changing the wording - although I don't understand the comment about the image link for the home page. Any logo type link that also goes to a home page needs to communicate the image logo alternative and also the purpose of the link - goes to home page. I believe that is what is trying to be communicated.
Any logo type link that also goes to a home page needs to communicate the image logo alternative and also the purpose of the link - goes to home page.
If graphics and link target are both important, the example is ok. However, I think that mostly the link target is important rather than the graphic. This also refers to SC 1.1.1:
If non-text content is a control ... , then it has a name that describes its purpose
i.e. in the case of a graphical control, it is not the graphic that must be described, but the purpose of the control. Of course, this may be different for the logo of the page. Nonetheless, "Home page" would be sufficient as a link label. Both the "Go to the" for a link and the "Icon" for a graphic are superfluous.
I believe an equivalent of the graphic is needed - not just the purpose of the link as they may or may not be the same. In terms of just stating home page - while I typically agree go to is extra verbosity - there could be confusion on if this current page is actually the home page or the link goes to the home page. That is what that wording was trying to make clear. The graphic link is serving two purposes - 1 to communicate something about the current page's author and 2 what the link does.
Check that the combined text from the a element and alt attribute values from img elements contained in the a element clearly identifies the target of the link.
Check that adjacent links do not go to the same target.
I think that example 2 is not great. I'd rather have:
A link contains an icon and text to indicate a book title to download and what file type the downloaded file is. The img has a text alternative which indicates the file type.
<a href="book2.epub">
Download Book 2 <img src="epub.gif" alt="EPub">
</a>
Activity
JAWS-test commentedon Mar 23, 2021
The first check could be removed.
Alternatively, the first part of the second check could be removed and both checks could be connected not with an AND but with an OR
Perhaps another check should be added, derived from the description of H2: Check that a link consisting of text and icon does not consist of two separate links in the source code (however, there seems to be no SC that explicitly prohibits this)..
Also, I would design example 2 better, because an output of "home page icon Go to the home page" is not useful (and possibly violates SC 2.4.6)
mraccess77 commentedon Mar 23, 2021
Hi @JAWS-test I agree with your your suggestions for changing the wording - although I don't understand the comment about the image link for the home page. Any logo type link that also goes to a home page needs to communicate the image logo alternative and also the purpose of the link - goes to home page. I believe that is what is trying to be communicated.
JAWS-test commentedon Mar 23, 2021
If graphics and link target are both important, the example is ok. However, I think that mostly the link target is important rather than the graphic. This also refers to SC 1.1.1:
i.e. in the case of a graphical control, it is not the graphic that must be described, but the purpose of the control. Of course, this may be different for the logo of the page. Nonetheless, "Home page" would be sufficient as a link label. Both the "Go to the" for a link and the "Icon" for a graphic are superfluous.
mraccess77 commentedon Mar 23, 2021
I believe an equivalent of the graphic is needed - not just the purpose of the link as they may or may not be the same. In terms of just stating home page - while I typically agree go to is extra verbosity - there could be confusion on if this current page is actually the home page or the link goes to the home page. That is what that wording was trying to make clear. The graphic link is serving two purposes - 1 to communicate something about the current page's author and 2 what the link does.
awkawk commentedon Mar 23, 2021
How about:
For each a applying this technique:
I think that example 2 is not great. I'd rather have:
A link contains an icon and text to indicate a book title to download and what file type the downloaded file is. The img has a text alternative which indicates the file type.