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 15761 - Incorrect description of the name attribute for the form element
Summary: Incorrect description of the name attribute for the form element
Status: VERIFIED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5: The Markup Language (editor: Michael(tm) Smith) (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Michael[tm] Smith
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-28 16:54 UTC by Filipus Klutiero
Modified: 2012-02-13 17:06 UTC (History)
2 users (show)

See Also:


Attachments

Description Filipus Klutiero 2012-01-28 16:54:24 UTC
The description of the form element's name attribute reads:
ⓘ name = string
    The name part of the name/value pair associated with this element for the purposes of form submission.

http://dev.w3.org/html5/markup/form.html#form.attrs.name

This description is the same as the description of the name attribute of form input fields, which is right. But it does not apply to the form element itself.

The specification has a correct definition:

The name attribute represents the form's name within the forms collection. The value must not be the empty string, and the value must be unique amongst the form elements in the forms collection that it is in, if any.

http://www.w3.org/TR/html5/forms.html#the-form-element
Comment 1 Michael[tm] Smith 2012-02-13 07:25:40 UTC
Thanks for catching this. I have checked in a fix:

http://dev.w3.org/cvsweb/html5/markup/elements/form.html.diff?r1=1.9;r2=1.10;f=h

And the update is live now:

  http://dev.w3.org/html5/markup/form.html#form.attrs.name

Note that parts of this document are generated from the schema was use for the W3C Nu Markup Validator. And in that schema, we are currently not doing the check for "The value must not be the empty string, and the value must be unique amongst the form elements in the forms collection that it is in, if any." constraint. Once I add it to the schema code, it will automatically also get generated as part of the documentation. In the mean time, I've filed a bug for that:

http://bugzilla.validator.nu/show_bug.cgi?id=903