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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>19005</bug_id>
          
          <creation_ts>2008-05-12 06:30:32 -0700</creation_ts>
          <short_desc>GET form items without name attribute are still submitted</short_desc>
          <delta_ts>2009-03-02 03:56:35 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>20184</dup_id>
          
          <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="Wim Leers">work</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80170</commentid>
    <comment_count>0</comment_count>
    <who name="Wim Leers">work</who>
    <bug_when>2008-05-12 06:30:32 -0700</bug_when>
    <thetext>When you have for example a select element in a GET form, then remove its name attribute after it has been loaded (using Javascript), then submit the form, WebKit will *still* append the value to the URL, but set no name attribute.

E.g. http://foo.com/somepage?=value, where &quot;value&quot; is the selected value of the select.

Notes:
- I did not test if this also happens with POST forms.
- I did not test if this also happens when you don&apos;t have a name attribute from the beginning. (I tested with a document that has a name attribute set in the beginning and removed it afterwards, using JS.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80172</commentid>
    <comment_count>1</comment_count>
      <attachid>21078</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-05-12 06:39:46 -0700</bug_when>
    <thetext>Created attachment 21078
a test that doesn&apos;t fail

I cannot reproduce the problem using this test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80173</commentid>
    <comment_count>2</comment_count>
      <attachid>21079</attachid>
    <who name="Wim Leers">work</who>
    <bug_when>2008-05-12 06:48:08 -0700</bug_when>
    <thetext>Created attachment 21079
Test case that uses a select element, which does show the bug.

When I run your test example, a question mark gets appended to the URL. I&apos;m not sure if that&apos;s correct, but that seems like a bug to me?

Anyway, I&apos;ve updated your test case to use a select element, and now it does happen. I guess it only happens with select elements.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80174</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-05-12 06:53:56 -0700</bug_when>
    <thetext>Confirmed with r33044; not a regression from latest shipping WebKit.

(In reply to comment #2)
&gt; Test case that uses a select element, which does show the bug.

Sorry, I should have thought of testing with select, as you described originally.

&gt; When I run your test example, a question mark gets appended to the URL. I&apos;m not
&gt; sure if that&apos;s correct, but that seems like a bug to me?

We match Firefox in this regard. Also, appears to match the steps in paragraph 17.13.3 of HTML 4.01 spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80175</commentid>
    <comment_count>4</comment_count>
    <who name="Wim Leers">work</who>
    <bug_when>2008-05-12 06:57:32 -0700</bug_when>
    <thetext>&gt; Confirmed with r33044; not a regression from latest shipping WebKit.
Excellent. I don&apos;t think it&apos;ll be too hard to fix this, and while annoying, one can live with this. This is my first &quot;contribution&quot; to WebKit :)

&gt; Sorry, I should have thought of testing with select, as you described
&gt; originally.
No problem :) I&apos;m already amazed by the professionalism and speed of your reply!

&gt; &gt; When I run your test example, a question mark gets appended to the URL. I&apos;m not
&gt; &gt; sure if that&apos;s correct, but that seems like a bug to me?
&gt; 
&gt; We match Firefox in this regard. Also, appears to match the steps in paragraph
&gt; 17.13.3 of HTML 4.01 spec.

Ok, I had a suspicion that wasn&apos;t a bug :)


Keep on rocking, WebKit Team! :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111803</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-03-02 03:56:35 -0800</bug_when>
    <thetext>This bug was filed earlier, but bug 20184 got a fix, marking as a duplicate.

*** This bug has been marked as a duplicate of 20184 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>21078</attachid>
            <date>2008-05-12 06:39:46 -0700</date>
            <delta_ts>2008-05-12 06:39:46 -0700</delta_ts>
            <desc>a test that doesn&apos;t fail</desc>
            <filename>form.html</filename>
            <type>text/html</type>
            <size>274</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">PGJvZHk+PGZvcm0gbWV0aG9kPSJnZXQiIGFjdGlvbj0iZm9vYmFyIj4KPGlucHV0IG5hbWU9YSB2
YWx1ZT12YWx1ZT48L2lucHV0Pgo8L2Zvcm0+CjxzY3JpcHQ+CmZ1bmN0aW9uIHRlc3QoKSB7CiAg
ICBkb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgiaW5wdXQiKVswXS5yZW1vdmVBdHRyaWJ1
dGUoIm5hbWUiKTsKICAgIGRvY3VtZW50LmZvcm1zWzBdLnN1Ym1pdCgpOwp9Cjwvc2NyaXB0Pgo8
YnV0dG9uIG9uY2xpY2s9InRlc3QoKSI+VGVzdDwvYnV0dG9uPgo8L2JvZHk+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>21079</attachid>
            <date>2008-05-12 06:48:08 -0700</date>
            <delta_ts>2008-05-12 06:48:08 -0700</delta_ts>
            <desc>Test case that uses a select element, which does show the bug.</desc>
            <filename>testcase.html</filename>
            <type>text/html</type>
            <size>328</size>
            <attacher name="Wim Leers">work</attacher>
            
              <data encoding="base64">PGJvZHk+PGZvcm0gbWV0aG9kPSJnZXQiIGFjdGlvbj0idGVzdGNhc2UuaHRtbCI+CjxzZWxlY3Qg
bmFtZT1hPjxvcHRpb24gdmFsdWU9ImZvb2JhciIgc2VsZWN0ZWQ9InNlbGVjdGVkIj5mb29iYXI8
L3ZhbHVlPjwvc2VsZWN0Pgo8L2Zvcm0+CjxzY3JpcHQ+CmZ1bmN0aW9uIHRlc3QoKSB7CiAgICBk
b2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgic2VsZWN0IilbMF0ucmVtb3ZlQXR0cmlidXRl
KCJuYW1lIik7CiAgICBkb2N1bWVudC5mb3Jtc1swXS5zdWJtaXQoKTsKfQo8L3NjcmlwdD4KPGJ1
dHRvbiBvbmNsaWNrPSJ0ZXN0KCkiPlRlc3Q8L2J1dHRvbj4KPC9ib2R5Pg==
</data>

          </attachment>
      

    </bug>

</bugzilla>