w3c / accname

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

Remove label in Step 2E #154

Open JAWS-test opened 2 years ago

JAWS-test commented 2 years ago

2E:

Otherwise, if the current node is a control embedded within the label (e.g. the label element in HTML or any element directly referenced by aria-labelledby) for another widget, where the user can adjust the embedded control's value, then include the embedded control as part of the text alternative in the following manner

A label cannot contain a form element and serve as a label for another form element at the same time (see https://github.com/w3c/html-aam/issues/35).

Suggestion: remove label and leave aria-labelledby and finally fix the example (https://github.com/w3c/accname/issues/65)