- From: James Nurthen <nurthen@adobe.com>
- Date: Thu, 5 Mar 2020 23:12:34 +0000
- To: Bryan Garaventa <bryan.garaventa@levelaccess.com>, ARIA <public-aria@w3.org>
- Message-ID: <BY5PR02MB603672E67901C4CB4819ECF6A6E20@BY5PR02MB6036.namprd02.prod.outlook.com>
According to the HTML spec as written the INPUT in this example is not labeled by the label. Except where otherwise specified by the following rules, a label<https://html.spec.whatwg.org/#the-label-element> element has no labeled control<https://html.spec.whatwg.org/#labeled-control>. The for attribute may be specified to indicate a form control with which the caption is to be associated. If the attribute is specified, the attribute's value must be the ID<https://dom.spec.whatwg.org/#concept-id> of a labelable element<https://html.spec.whatwg.org/#category-label> in the same tree<https://dom.spec.whatwg.org/#concept-tree> as the label<https://html.spec.whatwg.org/#the-label-element> element. If the attribute is specified and there is an element in the tree<https://dom.spec.whatwg.org/#concept-tree> whose ID<https://dom.spec.whatwg.org/#concept-id> is equal to the value of the for<https://html.spec.whatwg.org/#attr-label-for> attribute, and the first such element in tree order<https://dom.spec.whatwg.org/#concept-tree-order> is a labelable element<https://html.spec.whatwg.org/#category-label>, then that element is the label<https://html.spec.whatwg.org/#the-label-element> element's labeled control<https://html.spec.whatwg.org/#labeled-control>. If the for<https://html.spec.whatwg.org/#attr-label-for> attribute is not specified, but the label<https://html.spec.whatwg.org/#the-label-element> element has a labelable element<https://html.spec.whatwg.org/#category-label> descendant, then the first such descendant in tree order<https://dom.spec.whatwg.org/#concept-tree-order> is the label<https://html.spec.whatwg.org/#the-label-element> element's labeled control<https://html.spec.whatwg.org/#labeled-control>. James Nurthen | Accessibility Engineer | Adobe | p. 415.832.2734 | c. 415.987.1918 | nurthen@adobe.com From: Bryan Garaventa <bryan.garaventa@levelaccess.com> Date: Thursday, March 5, 2020 at 2:59 PM To: ARIA <public-aria@w3.org> Subject: AccName uncertainty for form field label Hi, What do you think the accessible name for this form field should be? <label for=”test”>Email: <input type=”text” /> </label> Thanks, Bryan Bryan Garaventa Principal Accessibility Architect Level Access, Inc. Bryan.Garaventa@LevelAccess.com<mailto:Bryan.Garaventa@LevelAccess.com> 415.624.2709 (o) www.LevelAccess.com<http://www.levelaccess.com/>
Received on Thursday, 5 March 2020 23:12:51 UTC