You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Name of <fieldset> group given by <legend> and <fieldset name=""> confusable #3702
The name of the group is given by the first legend element that is a child of the fieldset element, if any. The remainder of the descendants form the group.
I wasn't able to find another use of “name” in the sense that it is defined here, that is, I couldn't find any reference to how such a name would be used.
The term seems to be causing some confusion in w3c/csswg-drafts#1584 so this is a request for some clarification, and/or perhaps calling it the “legend or label”of the group (or “caption”, to be consistent with how <label> is defined) so it's at least clearly not the same as the name of the <fieldset> element.
This makes sense. I'm thinking rewriting the two paragraphs there to something like
The fieldset element represents a set of form controls grouped together, optionally with a caption. The caption is given by the first legend element that is a child of the fieldset element, if any. The remainder of the descendants form the group.
That looks great! My main concern is with “The remainder of the descendants form the group.” ... It's a group of form controls, but the contents of the <fieldset> can include all manner of other expository content, so this sentence somehow needs to encapsulate that content as well as the controls themselves.
The fieldset element represents a set of form controls (or other content) grouped together, optionally with a caption. The caption is given by the first legend element that is a child of the fieldset element, if any. The remainder of the descendants form the group.
I'm not convinced it's useful to point to a term in the rendering section, it seems to me it could rather make things more confusing.
Activity
domenic commentedon May 23, 2018
This makes sense. I'm thinking rewriting the two paragraphs there to something like
fantasai commentedon May 23, 2018
That looks great! My main concern is with “The remainder of the descendants form the group.” ... It's a group of form controls, but the contents of the
<fieldset>can include all manner of other expository content, so this sentence somehow needs to encapsulate that content as well as the controls themselves.LJWatson commentedon May 23, 2018
I don't think it's the intent of "name" in this context, but worth mentioning that the
<legend>gives the<fieldset>its accessible name.Loirooriol commentedon May 23, 2018
I think a note saying that this is not the same as the rendered legend would be useful.
zcorpan commentedon Aug 15, 2018
OK so how about this
I'm not convinced it's useful to point to a term in the rendering section, it seems to me it could rather make things more confusing.
Refer to a fieldset's legend as a caption to reduce confusion
Refer to a fieldset's legend as a caption to reduce confusion
Refer to a fieldset's legend as a caption to reduce confusion
Refer to a fieldset's legend as a caption to reduce confusion