Bug 254812 - AX: wrong computed accessible name for input with multiple labels associated
Summary: AX: wrong computed accessible name for input with multiple labels associated
Status: RESOLVED DUPLICATE of bug 152663
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: Safari 16
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-31 07:49 PDT by Giacomo Petri
Modified: 2023-07-15 15:52 PDT (History)
3 users (show)

See Also:


Attachments
Screenshot showing how Safari compute the acc name with "This" instead of "This is a label" (829.58 KB, image/png)
2023-03-31 07:49 PDT, Giacomo Petri
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Giacomo Petri 2023-03-31 07:49:46 PDT
Created attachment 465700 [details]
Screenshot showing how Safari compute the acc name with "This" instead of "This is a label"

*Steps to reproduce:*

Code:

<label for="label">This</label>
<label for="label">is</label>
<label for="label">a</label>
<label for="label">label</label>
<input type="text" name="lb" id="label">


*Actual result:*

The computed accessible name is: "This"


*Expected result:*

Per https://www.w3.org/TR/html-aam-1.0/#accname-computation, section 4.1.1, point 2

"Otherwise use the associated label element or elements accessible name(s) - if more than one label is associated; concatenate by DOM order, delimited by spaces."

the computed accessible name should be: "This is a label" (concatenate by DOM order, delimited by spaces)
Comment 1 Radar WebKit Bug Importer 2023-03-31 07:49:55 PDT
<rdar://problem/107471926>
Comment 2 Tyler Wilcock 2023-07-15 15:52:59 PDT

*** This bug has been marked as a duplicate of bug 152663 ***