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 26223 - WAI ARIA Spec gives example of form field in a label, html5 says that's not ok.
Summary: WAI ARIA Spec gives example of form field in a label, html5 says that's not ok.
Status: RESOLVED FIXED
Alias: None
Product: ARIA
Classification: Unclassified
Component: Spec (show other bugs)
Version: 1.0
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: James Craig
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-27 16:54 UTC by dmacdona
Modified: 2018-05-03 20:46 UTC (History)
1 user (show)

See Also:


Attachments

Description dmacdona 2014-06-27 16:54:07 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 Michael Cooper 2018-05-03 20:46:54 UTC
Believe this is addressed / OBE.