Bug 26668

Summary: AX: need a way to retrieve the language for an element
Product: WebKit Reporter: chris fleizach <cfleizach>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Attachments:
Description Flags
patch oliver: review+

Description chris fleizach 2009-06-23 18:49:51 PDT
elements can have the lang attribute or have a meta tag that specifies language

accessibility needs to be able to vend this
Comment 1 chris fleizach 2009-06-24 11:54:27 PDT
Created attachment 31799 [details]
patch
Comment 2 Oliver Hunt 2009-06-24 12:13:50 PDT
Comment on attachment 31799 [details]
patch

r=me

It would be great if AX tests could start using the js-test-* style result reporting as they make for much readable test out in browser, report failures nicer, and have a number of functions for testing certain kinds of equality.
Comment 3 Darin Adler 2009-06-24 13:45:10 PDT
Comment on attachment 31799 [details]
patch

> +    JSRetainPtr<JSStringRef> language(Adopt, toAXElement(thisObject)->language());

Is this adopt really correct?
Comment 4 chris fleizach 2009-06-24 14:21:54 PDT
i think so. it works, and i copied it from the description() method above
Comment 5 chris fleizach 2009-06-24 15:15:32 PDT
http://trac.webkit.org/changeset/45109
Comment 6 chris fleizach 2009-06-24 15:56:00 PDT
fixing windows build in progress
Comment 7 chris fleizach 2009-06-24 16:01:15 PDT
windows build fix in
http://trac.webkit.org/changeset/45112