-
Notifications
You must be signed in to change notification settings - Fork 22
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
WCAG/ACCNAME discrepancy with `<img alt="" title="foo"> #27
Comments
From @cookiecrook on July 7, 2017 9:25 Similar issue in HTML-AAM w3c/html-aam#99 |
Melanie: This came up in Chromium (which currently doesn't use the title). And it's not 100% clear what the right answer is (use the title or not). I don't know if the fix belongs here, in HTML-AAM, or what.... But some clarification is needed somewhere. Ideas? |
In case it's helpful, there's an img section in HTML-AAM that makes it pretty clear that
|
just spent some time with @stevefaulkner on this, re: the intent of HTML AAM. from our perspective, if there's an
|
I'm afraid in my mind it's not pretty clear. I read that section before commenting here.
Would be way more clear IMHO if that statement ended with "even if it's empty."
Does an empty
And WCAG says:
So for images that should be ignored, there should be an absent or empty But whatever.... The HTML-AAM's According to AccName's step 2D:
Does the |
related to w3c/accname#27
https://bugs.webkit.org/show_bug.cgi?id=173870 <rdar://problem/33010427> Reviewed by Andres Gonzalez. Source/WebCore: alt="" usually means to ignore an image. However, when it also carries other descriptive attributes, that is probably the wrong decision. Other browsers are not ignoring these images, WebKit should follow suit. This issue has been raised with w3c/accname#27 Test: accessibility/img-no-alt-not-ignored-with-title.html * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored const): LayoutTests: * accessibility/img-no-alt-not-ignored-with-title-expected.txt: Added. * accessibility/img-no-alt-not-ignored-with-title.html: Added. * platform/ios-simulator/TestExpectations: * platform/win/TestExpectations: Canonical link: https://commits.webkit.org/243521@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@284844 268f45cc-cd09-0410-ab3c-d52691b4dbfc
https://bugs.webkit.org/show_bug.cgi?id=173870 <rdar://problem/33010427> Reviewed by Andres Gonzalez. Source/WebCore: alt="" usually means to ignore an image. However, when it also carries other descriptive attributes, that is probably the wrong decision. Other browsers are not ignoring these images, WebKit should follow suit. This issue has been raised with w3c/accname#27 Test: accessibility/img-no-alt-not-ignored-with-title.html * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored const): LayoutTests: * accessibility/img-no-alt-not-ignored-with-title-expected.txt: Added. * accessibility/img-no-alt-not-ignored-with-title.html: Added. * platform/ios-simulator/TestExpectations: * platform/win/TestExpectations: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@284844 268f45cc-cd09-0410-ab3c-d52691b4dbfc
* clarify img naming steps related to w3c/accname#27 * remove reference to note that’s no longer there add in new note as a reminder that `alt=“”` means the `img` is meant to be exposed as role=presentation
this was resolved in HTML AAM. further conversation in w3c/html-aam#404 and w3c/aria#1746 shall we close this issue in favor of the others where conversation should continue? |
* clarify img naming steps related to w3c/accname#27 * remove reference to note that’s no longer there add in new note as a reminder that `alt=“”` means the `img` is meant to be exposed as role=presentation
From @cookiecrook on July 7, 2017 9:25
The following text in ACCNAME:
Seems to literally means the value even if it's empty, which does not leave the exception covered by WCAG Success Criteria H67: https://www.w3.org/TR/WCAG20-TECHS/H67.html
Furthermore, both Blink and Gecko allow this behavior. WebKit currently matches the HTML-AAM and ACCNAME specs, but will likely change to match the other browser's behavior. https://webkit.org/b/173870
Test case 7 here:
https://bugs.webkit.org/attachment.cgi?id=314203
Copied from original issue: w3c/aria#602
The text was updated successfully, but these errors were encountered: