<?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>12407</bug_id>
          
          <creation_ts>2011-03-31 21:34:40 +0000</creation_ts>
          <short_desc>input type=&quot;image&quot; and &quot;name&quot; attribute</short_desc>
          <delta_ts>2011-08-04 05:01:52 +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>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="Luca Tomat">luca.tomat</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>jackalmage</cc>
    
    <cc>mike</cc>
    
    <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>47084</commentid>
    <comment_count>0</comment_count>
    <who name="Luca Tomat">luca.tomat</who>
    <bug_when>2011-03-31 21:34:40 +0000</bug_when>
    <thetext>Hello,
in the HTML standard (the one web-developers read) http://www.w3.org/TR/html401/interact/forms.html#h-17.4 you state that the input element has a &quot;name&quot; attribute and since the type=&quot;image&quot; is a subclass it is reasonable to expect it present there too.

But in the implementation standard (the one web-browser-developers read) http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#constructing-the-form-data-set (point 3.3) the &quot;name&quot; attribute is excluded.

Here we have two standard documents in contraddiction with each other.

Which one is right?

Please see this bug report too:
https://bugzilla.mozilla.org/show_bug.cgi?id=583211</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47085</commentid>
    <comment_count>1</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2011-03-31 21:44:28 +0000</bug_when>
    <thetext>HTML4 is an obsolete standard.  Don&apos;t read it anymore - use the HTML5 standard, or the developers view of it &lt;http://developers.whatwg.org/&gt;.

In any case, I have no idea what you&apos;re talking about re: &lt;input type=image&gt; and @name.  Point 3.3 in the algorithm you link to explains precisely how to deal with the &apos;name&apos; attribute on &lt;input type=image&gt; when constructing the form data to be submitted.

If there is a problem that I&apos;m somehow missing, can you elaborate?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47086</commentid>
    <comment_count>2</comment_count>
    <who name="Luca Tomat">luca.tomat</who>
    <bug_when>2011-03-31 22:03:21 +0000</bug_when>
    <thetext>Point 3.3 says that the name attribute should be converted in name_x and name_y but it also says to &quot;Skip the remaining substeps for this element&quot; and this means, as i understand it, not to elaborate point 4 which is the point that states the &quot;name&quot; attribute should be sent too.

From a server side, when i have a regular &quot;input&quot; tag, i&apos;ll receive the &quot;name&quot; field too, but when i have a &quot;input type=image&quot; tag i&apos;ll receive only &quot;name_x&quot; and &quot;name_y&quot; but not &quot;name&quot;.

In the HTML 4.01 standard i linked it doesn&apos;t say in any place that when the input type is &quot;image&quot; the &quot;name&quot; attribute should not be sent (together with name_x and name_y). Did this change in HTML5?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47087</commentid>
    <comment_count>3</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2011-03-31 22:17:41 +0000</bug_when>
    <thetext>It didn&apos;t change; HTML4 was just insufficiently precise.  (That&apos;s par for the course in HTML4 - *many* things are insufficiently defined.)

HTML5 just defines the actual behavior more precisely than HTML4 did.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52480</commentid>
    <comment_count>4</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:01:52 +0000</bug_when>
    <thetext>mass-moved component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>