Commit 8a814004 authored by cfleizach@apple.com's avatar cfleizach@apple.com

<rdar://problem/5932677> AX: Submit buttons aren't returning AXTitle



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33420 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 87976ea6
2008-05-13 chris fleizach <cfleizach@apple.com>
Reviewed by Beth Dakin
<rdar://problem/5932677> AX: Submit buttons aren't returning AXTitle
* page/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::title):
2008-05-13 Timothy Hatcher <timothy@apple.com>
Adds an overlay window that covers the scripts panel and
......@@ -622,9 +622,6 @@ String AccessibilityRenderObject::title() const
if (!ariaLabel.isEmpty())
return ariaLabel;
if (roleValue() == ButtonRole)
return textUnderElement();
bool isInputTag = node->hasTagName(inputTag);
if (isInputTag) {
HTMLInputElement* input = static_cast<HTMLInputElement*>(node);
......@@ -638,6 +635,9 @@ String AccessibilityRenderObject::title() const
return label->innerText();
}
if (roleValue() == ButtonRole)
return textUnderElement();
if (isLink()) {
Element* element = static_cast<Element*>(node);
const AtomicString& title = element->getAttribute(titleAttr);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment