accname
accname copied to clipboard
Skip to 2E only, if a form element is labeled with aria-label?
Currently, according to the specification, it only skips to 2E if a form element is labeled with aria-label. However, this should also apply if it is labeled with label or aria-labelledby, for example. By the way, this is how it is handled correctly by the browsers and AccName Prototype Test, only the specification does not say it correctly (see https://github.com/w3c/accname/issues/96#issuecomment-774403355)
Example:
<input id=test>
<label for=test>
before
<input value=value aria-labelledby=aria>
after
</label>
<div id=aria>aria-labelledby</div>
According to the specification, the label from the input with id=test would be "before aria-labelledby after", but it should be "before value after".