Bug 51481 - AX: WAI-ARIA textbox role needs different AXRole, depending on value of aria-multiline property
Summary: AX: WAI-ARIA textbox role needs different AXRole, depending on value of aria-...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: chris fleizach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-22 10:30 PST by chris fleizach
Modified: 2010-12-22 12:50 PST (History)
4 users (show)

See Also:


Attachments
Patch (7.95 KB, patch)
2010-12-22 10:42 PST, chris fleizach
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description chris fleizach 2010-12-22 10:30:02 PST
AX: WAI-ARIA textbox role needs different AXRole, depending on value of aria-multiline property

Currently uses AXTextArea in all cases. Should use AXTextField by default unless it's a multiline text box, as defined below.

"If aria-multiline=”false” (default) use:
AXRole	AXTextField
AXRoleDescription	text field

If aria-multiline=”true” use:
AXRole	AXTextArea
AXRoleDescription	text entry area"
Comment 1 chris fleizach 2010-12-22 10:30:28 PST
http://www.w3.org/TR/wai-aria/complete#aria-multiline
Comment 2 chris fleizach 2010-12-22 10:42:18 PST
Created attachment 77233 [details]
Patch
Comment 3 Darin Adler 2010-12-22 11:46:03 PST
Comment on attachment 77233 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=77233&action=review

> WebCore/accessibility/AccessibilityObject.cpp:842
> +    return equalIgnoringCase(getAttribute(aria_multilineAttr), "true");

fastGetAttribute would be better here
Comment 4 chris fleizach 2010-12-22 11:46:45 PST
(In reply to comment #3)
> (From update of attachment 77233 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=77233&action=review
> 
> > WebCore/accessibility/AccessibilityObject.cpp:842
> > +    return equalIgnoringCase(getAttribute(aria_multilineAttr), "true");
> 
> fastGetAttribute would be better here

the version of getAttribute in AccessibilityObject calls fastGetAttribute
Comment 5 Darin Adler 2010-12-22 11:51:19 PST
Comment on attachment 77233 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=77233&action=review

>>> WebCore/accessibility/AccessibilityObject.cpp:842
>>> +    return equalIgnoringCase(getAttribute(aria_multilineAttr), "true");
>> 
>> fastGetAttribute would be better here
> 
> the version of getAttribute in AccessibilityObject calls fastGetAttribute

Got it. Excellent.
Comment 6 chris fleizach 2010-12-22 11:51:50 PST
http://trac.webkit.org/changeset/74492
Comment 7 WebKit Review Bot 2010-12-22 12:50:26 PST
http://trac.webkit.org/changeset/74492 might have broken GTK Linux 64-bit Debug