<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>15761</bug_id>
          
          <creation_ts>2012-01-28 16:54:24 +0000</creation_ts>
          <short_desc>Incorrect description of the name attribute for the form element</short_desc>
          <delta_ts>2012-02-13 17:06:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5: The Markup Language (editor: Michael(tm) Smith)</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Filipus Klutiero">chealer</reporter>
          <assigned_to name="Michael[tm] Smith">mike</assigned_to>
          <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>63219</commentid>
    <comment_count>0</comment_count>
    <who name="Filipus Klutiero">chealer</who>
    <bug_when>2012-01-28 16:54:24 +0000</bug_when>
    <thetext>The description of the form element&apos;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&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64018</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2012-02-13 07:25:40 +0000</bug_when>
    <thetext>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 &quot;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.&quot; 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&apos;ve filed a bug for that:

http://bugzilla.validator.nu/show_bug.cgi?id=903</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>