w3c / accname

Accessible Name and Description Computation
https://w3c.github.io/accname/
61 stars 23 forks source link

Should aria-labelledby *not* add the original node's value into the name? #243

Closed tranjocelyn closed 1 month ago

tranjocelyn commented 1 month ago

Consider this scenario:

<div id="container">
    <span>My edit</span>
    <input aria-labelledby="container" type="text" id="fld">
</div>

Here, the edit field is labelled by the container. Since the container name changes as the user types, the screen reader constantly announces the edit field name.

This raises the question: Should aria-labelledby not add the original node's value into the name?

This issue was originally posted in a Chromium issue.

tranjocelyn commented 1 month ago

@aleventhal

tranjocelyn commented 1 month ago

Thanks James for getting back to us on the original issue!