WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 96412
title attribute is not exposed as the AXDescription on AXImage when there is no other fallback content
https://bugs.webkit.org/show_bug.cgi?id=96412
Summary
title attribute is not exposed as the AXDescription on AXImage when there is ...
chris fleizach
Reported
2012-09-11 11:29:07 PDT
The bug here is that the title attribute does not become the label on AXImage if there is no alt tag.
Attachments
patch
(5.91 KB, patch)
2012-09-11 12:03 PDT
,
chris fleizach
webkit-ews
: commit-queue-
Details
Formatted Diff
Diff
patch
(6.17 KB, patch)
2012-09-11 12:13 PDT
,
chris fleizach
jhoneycutt
: review+
Details
Formatted Diff
Diff
patch for landing
(5.57 KB, patch)
2012-09-11 14:46 PDT
,
chris fleizach
no flags
Details
Formatted Diff
Diff
patch for landing
(6.49 KB, patch)
2012-09-11 14:47 PDT
,
chris fleizach
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
chris fleizach
Comment 1
2012-09-11 12:03:21 PDT
Created
attachment 163417
[details]
patch
Early Warning System Bot
Comment 2
2012-09-11 12:10:14 PDT
Comment on
attachment 163417
[details]
patch
Attachment 163417
[details]
did not pass qt-wk2-ews (qt): Output:
http://queues.webkit.org/results/13826335
Early Warning System Bot
Comment 3
2012-09-11 12:10:44 PDT
Comment on
attachment 163417
[details]
patch
Attachment 163417
[details]
did not pass qt-ews (qt): Output:
http://queues.webkit.org/results/13819431
WebKit Review Bot
Comment 4
2012-09-11 12:11:00 PDT
Comment on
attachment 163417
[details]
patch
Attachment 163417
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/13832041
chris fleizach
Comment 5
2012-09-11 12:13:02 PDT
Created
attachment 163418
[details]
patch
Jon Honeycutt
Comment 6
2012-09-11 12:24:22 PDT
Comment on
attachment 163418
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=163418&action=review
> LayoutTests/accessibility/img-fallsback-to-title.html:12 > + <img title="test1" height="100" width="100"> > + <img alt="alt" title="test2" height="100" width="100"> > + <div role="img" title="test3" width="100" height="100">test</div> > + <div role="img" alt="alt" title="test4" width="100" height="100">test</div>
Please add a test for the empty alt attribute case if we don't already have one. r=me
Darin Adler
Comment 7
2012-09-11 13:27:29 PDT
Comment on
attachment 163418
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=163418&action=review
> Source/WebCore/accessibility/AccessibilityRenderObject.cpp:1508 > - Node* node = m_renderer->node(); > if (isImage() || isInputImage() || isNativeImage() || isCanvas()) { > - if (node && node->isHTMLElement()) { > - const AtomicString& alt = toHTMLElement(node)->getAttribute(altAttr); > - if (alt.isEmpty()) > - return String(); > + > + // Images should use alt as long as the attribute is present, even if empty. > + // Otherwise, it should fallback to other methods, like the title attribute. > + const AtomicString& alt = getAttribute(altAttr); > + if (!alt.isNull()) > return alt; > - } > }
I understand the change from isEmpty to isNull. I don’t understand the removal of the HTMLElement check, nor does the test case seem to cover this.
Dominic Mazzoni
Comment 8
2012-09-11 14:10:16 PDT
Comment on
attachment 163418
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=163418&action=review
>> Source/WebCore/accessibility/AccessibilityRenderObject.cpp:1508 >> } > > I understand the change from isEmpty to isNull. I don’t understand the removal of the HTMLElement check, nor does the test case seem to cover this.
AccessibilityObject::getAttribute already does the HTMLElement check
chris fleizach
Comment 9
2012-09-11 14:28:30 PDT
(In reply to
comment #6
)
> (From update of
attachment 163418
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=163418&action=review
> > > LayoutTests/accessibility/img-fallsback-to-title.html:12 > > + <img title="test1" height="100" width="100"> > > + <img alt="alt" title="test2" height="100" width="100"> > > + <div role="img" title="test3" width="100" height="100">test</div> > > + <div role="img" alt="alt" title="test4" width="100" height="100">test</div> > > Please add a test for the empty alt attribute case if we don't already have one. > > r=me
Will add. Thanks
chris fleizach
Comment 10
2012-09-11 14:46:17 PDT
Created
attachment 163447
[details]
patch for landing
chris fleizach
Comment 11
2012-09-11 14:47:21 PDT
Created
attachment 163448
[details]
patch for landing
chris fleizach
Comment 12
2012-09-11 15:00:58 PDT
http://trac.webkit.org/changeset/128227
chris fleizach
Comment 13
2012-09-11 15:01:08 PDT
rdar://12061421
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug