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 29261 - define legend/fieldset acc name relatiosnhip in accname section
Summary: define legend/fieldset acc name relatiosnhip in accname section
Status: RESOLVED FIXED
Alias: None
Product: ARIA
Classification: Unclassified
Component: HTML AAM (show other bugs)
Version: 1.1
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: steve faulkner
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-04 15:01 UTC by steve faulkner
Modified: 2015-11-11 15:52 UTC (History)
6 users (show)

See Also:


Attachments

Description steve faulkner 2015-11-04 15:01:14 UTC
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
Comment 2 steve faulkner 2015-11-05 11:26:57 UTC
@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?
Comment 3 steve faulkner 2015-11-10 11:44:42 UTC
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
Comment 4 steve faulkner 2015-11-10 11:45:33 UTC
(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
Comment 5 James Craig 2015-11-11 07:48:58 UTC
(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>)
Comment 6 James Craig 2015-11-11 07:53:15 UTC
(In reply to James Craig from comment #5)
> Role: AXGroup

AXRole: AXGroup

> Subrole: AXFieldset

AXSubrole: AXFieldset

> AXDescription: (containing text value of <legend>)
Comment 7 steve faulkner 2015-11-11 08:25:29 UTC
(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.
Comment 8 steve faulkner 2015-11-11 09:37:58 UTC
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29261
Comment 9 steve faulkner 2015-11-11 09:38:52 UTC
try that again, this commit fixes https://github.com/w3c/aria/commit/6ee270a29973096688589fada2ebe98e00b36165
Comment 10 steve faulkner 2015-11-11 15:52:15 UTC
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.