This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26222 - WAI ARIA Spec gives example of form field in a label, HTML 5 says not allowed
Summary: WAI ARIA Spec gives example of form field in a label, HTML 5 says not allowed
Status: RESOLVED INVALID
Alias: None
Product: HTML.next
Classification: Unclassified
Component: default (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-27 16:52 UTC by dmacdona
Modified: 2016-05-05 14:31 UTC (History)
3 users (show)

See Also:


Attachments

Description dmacdona 2014-06-27 16:52:16 UTC
WAI ARIA Spec gives example of form field in a label, 
http://www.w3.org/TR/wai-aria/roles#textalternativecomputation
under 2B
"Authors sometimes embed a control within the label of another widget, where the user can adjust the embedded control's value. For example, consider a check box label that contains a text input field: "Flash the screen [input] times". If the user has entered "5" for the embedded text input, the complete label is "Flash the screen 5 times". For such cases, ....

html5 says:
http://www.w3.org/html/wg/drafts/html/CR/forms.html#the-label-element 
"Content model: Phrasing content, but with no descendant labelable elements unless it is the element's labeled control, and no descendant label elements"

There appears to be a discrepancy between wai aria and html 5. Suggest investigation into them. One should change...
Perhaps the wai aria doc can change it's text to...
"Authors sometimes embed a control within the label of another widget, where the user can adjust the embedded control's value. <add>as an "willful violation" of HTML."</add>
Comment 1 Charles McCathieNevile 2016-05-05 14:31:19 UTC
HTML allows for multiple interactive things inside a label, although that is not recommended. And it works in practice too.