<?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>16886</bug_id>
          
          <creation_ts>2008-01-15 14:54:11 -0800</creation_ts>
          <short_desc>Safari submits forms with disabled submit buttons</short_desc>
          <delta_ts>2023-06-26 09:29:04 -0700</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>523.x (Safari 3)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=243594</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>39021</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathew Harrison">mhharrison</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>akeerthi</cc>
    
    <cc>ap</cc>
    
    <cc>aroben</cc>
    
    <cc>code</cc>
    
    <cc>dglazkov</cc>
    
    <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67323</commentid>
    <comment_count>0</comment_count>
    <who name="Mathew Harrison">mhharrison</who>
    <bug_when>2008-01-15 14:54:11 -0800</bug_when>
    <thetext>Simple code example.  Even with submit button disabled, Safari will submit the form when pressing the return/enter key.  Button is disabled for mouse clicks.

&lt;html&gt;
	&lt;body&gt;
		&lt;form method=&quot;post&quot; action=&quot;nonpage.html&quot;&gt;
			&lt;input type=&quot;text&quot;&gt;
			&lt;input type=&quot;submit&quot; value=&quot;This is disabled&quot; DISABLED/&gt;
		&lt;/form&gt;
	&lt;/body&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67394</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-01-16 11:35:13 -0800</bug_when>
    <thetext>See also: bug 9756.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67395</commentid>
    <comment_count>2</comment_count>
      <attachid>18478</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-01-16 11:37:26 -0800</bug_when>
    <thetext>Created attachment 18478
test case

Same test as an attachment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67396</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-01-16 11:38:17 -0800</bug_when>
    <thetext>Confirmed with r29531.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67614</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2008-01-18 13:36:52 -0800</bug_when>
    <thetext>What do MSIE and Firefox do in this case?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67619</commentid>
    <comment_count>5</comment_count>
    <who name="Mathew Harrison">mhharrison</who>
    <bug_when>2008-01-18 13:47:47 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; What do MSIE and Firefox do in this case?
&gt; 

MSIE submits the form in the case of one text input.  If you have two text inputs and a disabled submit, MSIE will not submit the form.

Firefox will not submit the form if the submit input is disabled.

Safari will submit the form with multiple text inputs and a disabled submit button.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67623</commentid>
    <comment_count>6</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-01-18 14:15:10 -0800</bug_when>
    <thetext>What if there are multiple submit buttons?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69323</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-02-04 00:24:18 -0800</bug_when>
    <thetext>See also: bug 9756.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75289</commentid>
    <comment_count>8</comment_count>
    <who name="leppie">leppie</who>
    <bug_when>2008-03-26 06:20:04 -0700</bug_when>
    <thetext>&lt;a href=&quot;...&quot; id=&quot;sumLink&quot; disabled=&quot;disabled&quot;&gt;Foo&lt;/a&gt;

Is NOT disabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89829</commentid>
    <comment_count>9</comment_count>
    <who name="Gérard Talbot (no longer involved)">browserbugs2</who>
    <bug_when>2008-08-31 17:11:56 -0700</bug_when>
    <thetext>&gt; &lt;a href=&quot;...&quot; id=&quot;sumLink&quot; disabled=&quot;disabled&quot;&gt;Foo&lt;/a&gt;

is invalid markup code.

People of this bug should visit 
bug 14443 : Forms dont submit when disabling submit button
which is the exact opposite summary of this bug.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224969</commentid>
    <comment_count>10</comment_count>
    <who name="Dimitri Glazkov (Google)">dglazkov</who>
    <bug_when>2010-05-12 16:13:33 -0700</bug_when>
    <thetext>We match IE in this case, for consistency with other edge cases. See bug 9756 for more information</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1963622</commentid>
    <comment_count>11</comment_count>
    <who name="Erik Ostrom">code</who>
    <bug_when>2023-06-26 09:23:47 -0700</bug_when>
    <thetext>Although the 2010 outcome was WONTFIX, I believe this behavior was changed in https://bugs.webkit.org/show_bug.cgi?id=243594. Mentioning it here because this bug still turns up in Google results.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>18478</attachid>
            <date>2008-01-16 11:37:26 -0800</date>
            <delta_ts>2008-01-16 11:37:26 -0800</delta_ts>
            <desc>test case</desc>
            <filename>disabled-submit.html</filename>
            <type>text/html</type>
            <size>254</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">PGh0bWw+CiAgICAgICAgPGJvZHk+CiAgICAgICAgICAgICAgICA8Zm9ybSBtZXRob2Q9InBvc3Qi
IGFjdGlvbj0ibm9ucGFnZS5odG1sIj4KICAgICAgICAgICAgICAgICAgICAgICAgPGlucHV0IHR5
cGU9InRleHQiPgogICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgdHlwZT0ic3VibWl0IiB2
YWx1ZT0iVGhpcyBpcyBkaXNhYmxlZCIgRElTQUJMRUQvPgogICAgICAgICAgICAgICAgPC9mb3Jt
PgogICAgICAgIDwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>