Bug 121061

Summary: AX: Let ARIA override the value of an input type=range
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: bdakin, cfleizach, dmazzoni, jcraig, webkit-bug-importer
Priority: P2 Keywords: BlinkMergeCandidate, InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
test case none

Comment 1 Radar WebKit Bug Importer 2013-09-09 17:11:02 PDT
<rdar://problem/14950066>
Comment 2 chris fleizach 2013-09-09 17:39:27 PDT
James, does this idea look accurate to you
Comment 3 James Craig 2013-09-10 16:21:10 PDT
No, it's a bad patch. Only aria-valuetext should be used on range. The other attrs are identical semantically to the aria attrs (e.g. @max vs @aria-valuemax, and @value vs @aria-valuenow) so the host language attrs should win.

From the ARIA spec:
http://www.w3.org/WAI/PF/aria/complete#host_general_conflict

"When a host language declares a WAI-ARIA attribute to be in direct semantic conflict with a native attribute for a given element, user agents MUST ignore the WAI-ARIA attribute and instead use the host language attribute with the same implicit semantic."
Comment 4 Dominic Mazzoni 2013-09-10 23:44:45 PDT
Thanks for correcting me. I misinterpreted the spec.

I think the aria-valuetext part of the patch is still good - it wasn't working on an input type=range previously. I'll revert the rest.
Comment 5 James Craig 2013-09-11 00:11:54 PDT
(In reply to comment #4)

> I think the aria-valuetext part of the patch is still good - it wasn't working on an input type=range previously.

Are you sure? I demoed this working in a WWDC 2011 presentation. Are you saying it regressed or that it didn't look like it was working at all?
Comment 6 James Craig 2014-02-07 11:55:07 PST
Created attachment 223479 [details]
test case
Comment 7 James Craig 2014-02-07 11:55:45 PST
Attaching working test case and closing. If you have a test case that does not work, please reopen.