AX: ARIA combo boxes are not returning the right value for selected text range
authorcfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Jan 2016 18:11:51 +0000 (18:11 +0000)
committercfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Jan 2016 18:11:51 +0000 (18:11 +0000)
commitf85b94221da850fb2ef5d796420bb59fd3f35e6f
tree0f20396a6edf24be83368a57e817167b816308d8
parentb497db12825d1637c4d632be91a2f25a78985c28
AX: ARIA combo boxes are not returning the right value for selected text range
https://bugs.webkit.org/show_bug.cgi?id=153260

Reviewed by Darin Adler.

Source/WebCore:

Just because an element has an ARIA role doesn't mean we should always use the selected text range of the whole document.
If the element is also a text based ARIA control, we can still use the element's inner text range to return the right value.

Test: accessibility/selected-text-range-aria-elements.html

* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::selectedTextRange):

LayoutTests:

* accessibility/selected-text-range-aria-elements-expected.txt: Added.
* accessibility/selected-text-range-aria-elements.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@195457 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/accessibility/selected-text-range-aria-elements-expected.txt [new file with mode: 0644]
LayoutTests/accessibility/selected-text-range-aria-elements.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/accessibility/AccessibilityRenderObject.cpp