[Webkit-unassigned] [Bug 172464] New: AX: aria-label and aria-labelledby ignored when for-id association present on form input

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 22 12:50:06 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=172464

            Bug ID: 172464
           Summary: AX: aria-label and aria-labelledby ignored when for-id
                    association present on form input
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: iPhone / iPad
                OS: iOS 10
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Accessibility
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kenneth.petri at jpmorgan.com
                CC: webkit-bug-importer at group.apple.com

Overview: 

If an input field has a label and the label is associated with the field using for-id association, the for-id association overrides any other labels, whether those are associated using aria-labelledby or aria-label.



Example code 1 (only labels are associated via aria-labelledby):

<label id="labelID-one">Label One</label>
<input type="text" aria-labelledby="labelID-one labelID-two"> 
<span id="labelID-two">Label Two</span>

Expected Result for Example code 1:
When field is focused, VoiceOver reads: "Label One, Label Two, text field"

Actual Result for Example code 1:
(same as expected result)




Example code 2 (for-id association present along with labelledby)

<label id="labelID-one" for="field-one">Label One</label>
<input id="field-one" type="text" aria-labelledby="labelID-one labelID-two"> 
<span id="labelID-two">Label Two</span>

Expected Result for Example code 2:
When field is focused, VoiceOver overrides for-id association and reads labelledby IDREF values: "Label One, Label Two, text field"

Actual Result for Example code 2:
When field is focused, VoiceOver reads only the for-id associated label: "Label One, text field"




Example code 3 (for-id association present and aria-label used):

<label for="field-one">Label One</label>
<input id="field-one" type="text" aria-label="an aria label"> 

Expected Result for Example code 3:
When field is focused, VoiceOver overrides for-id association and reads aria-label value: "an aria label, text field"

Actual Result for Example code 3:
When field is focused, VoiceOver reads only the for-id associated label: "Label One, text field"


These results were verified using iOS 10.3.1 on both iPad and iPhone.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170522/0e0eb9a0/attachment.html>


More information about the webkit-unassigned mailing list