This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
see related discussion start @alice and end @steve here http://w3c.github.io/a11ySlackers/archives/2015/11/2015-11-03.html partially defined here http://www.w3.org/TR/html-aam-1.0/#el-legend but needs AX mapping and also needs documenting here http://www.w3.org/TR/html-aam-1.0/#other-form-elements
related chrome bug https://code.google.com/p/chromium/issues/detail?can=2&q=fieldset%20legend&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Cr%20Status%20Owner%20Summary%20OS%20Modified&id=550663&thanks=550663&ts=1446512395
@james can you provide details or pointer to details on how the legend element content is used to provide the label/description for the fieldset?
have added general name/desc calc stuff (http://rawgit.com/w3c/aria/master/html-aam/html-aam.html#figure-and-figcaption-elements), still need details for AX
(In reply to steve faulkner from comment #3) > have added general name/desc calc stuff > (http://rawgit.com/w3c/aria/master/html-aam/html-aam.html#figure-and- > figcaption-elements), still need details for AX sorry wrong link here is correct: http://rawgit.com/w3c/aria/master/html-aam/html-aam.html#fieldset-and-legend-elements
(In reply to steve faulkner from comment #2) > @james can you provide details or pointer to details on how the legend > element content is used to provide the label/description for the fieldset? If you're asking about WebKit, the <legend> text is used to populate the label of the containing <fieldset> element, which is exposed as: Role: AXGroup Subrole: AXFieldset AXDescription: (containing text value of <legend>)
(In reply to James Craig from comment #5) > Role: AXGroup AXRole: AXGroup > Subrole: AXFieldset AXSubrole: AXFieldset > AXDescription: (containing text value of <legend>)
(In reply to James Craig from comment #5) > (In reply to steve faulkner from comment #2) > > @james can you provide details or pointer to details on how the legend > > element content is used to provide the label/description for the fieldset? > > If you're asking about WebKit, the <legend> text is used to populate the > label of the containing <fieldset> element, which is exposed as: > > Role: AXGroup > Subrole: AXFieldset > AXDescription: (containing text value of <legend>) thanks.
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29261
try that again, this commit fixes https://github.com/w3c/aria/commit/6ee270a29973096688589fada2ebe98e00b36165
tested on latest Safari/Mac using this test page http://codepen.io/stevef/pen/VvVVvz legend only = AXDescription aria-label+legend = AXDescription from label, legend dropped aria-label+legend used as describedby = AXDescription from label, AXHelp from legend Also note @James AXsubRole=null for fieldset.