<?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>17185</bug_id>
          
          <creation_ts>2012-05-25 10:50:22 +0000</creation_ts>
          <short_desc>Remove the missing value default for formmethod=&quot;&quot;</short_desc>
          <delta_ts>2013-01-24 23:45:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#attr-fs-formmethod</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>mounir</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>68113</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-05-25 10:50:22 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html
Multipage: http://www.whatwg.org/C#attr-fs-formmethod
Complete: http://www.whatwg.org/c#attr-fs-formmethod

Comment:
Remove the missing value default for formmethod=&quot;&quot;

Posted from: 85.227.154.145 by simonp@opera.com
User agent: Opera/9.80 (Macintosh; Intel Mac OS X 10.7.3; U; en) Presto/2.10.229 Version/11.64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68115</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-05-25 10:54:51 +0000</bug_when>
    <thetext>formmethod should only have an invalid value default, not a missing value default.

Consider

&lt;form method=post&gt; &lt;input type=submit&gt; &lt;/form&gt;

input.formMethod will return &quot;get&quot;, which is bogus since the attribute isn&apos;t specified so the form&apos;s method is really &quot;post&quot;. With the proposed change, input.formMethod would return the empty string.

Since &lt;form method=post&gt; &lt;input type=submit formmethod=invalid&gt; &lt;/form&gt; causes the form to use GET, making input.formMethod return &quot;get&quot; there makes sense, and allows for feature detection.

The same thing applies to formenctype.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70849</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 17:37:20 +0000</bug_when>
    <thetext>This bug was cloned to create bug 18191 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72824</commentid>
    <comment_count>3</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-08-27 17:54:33 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7282.
Check-in comment: Make .formenctype and .formaction IDL attributes return &apos;&apos; rather than default values when they are not set, to indicate that they defer to the form.
http://html5.org/tools/web-apps-tracker?from=7281&amp;to=7282</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81897</commentid>
    <comment_count>4</comment_count>
    <who name="Mounir Lamouri">mounir</who>
    <bug_when>2013-01-21 17:00:25 +0000</bug_when>
    <thetext>Ian, I think your change made form.method and form.encoding and form.enctype to follow the reflection rules Simon asked for formControl.formMethod and formControl.formEnctype.

I think Simon&apos;s proposal really makes sense for .formMethod and .formEnctype reflection but it doesn&apos;t make much sense to apply this to HTMLFormElement.{method,enctype,encoding} given that the rationale from comment 1 would not apply (ie. &lt;form&gt;&lt;/form&gt; will use the &apos;GET&apos; method).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81999</commentid>
    <comment_count>5</comment_count>
    <who name="Mounir Lamouri">mounir</who>
    <bug_when>2013-01-23 12:35:44 +0000</bug_when>
    <thetext>FWIW, we just landed some code in Gecko to implement&apos;s Simon&apos;s proposal but without following the change that has been made to the attribute reflection on the form elements. See https://bugzilla.mozilla.org/show_bug.cgi?id=787095</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82114</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-01-24 23:43:17 +0000</bug_when>
    <thetext>Wow, yeah, dunno what I was thinking there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82115</commentid>
    <comment_count>7</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-01-24 23:45:45 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7648.
Check-in comment: Fix broken logic around IDL attributes for form submission.
http://html5.org/tools/web-apps-tracker?from=7647&amp;to=7648</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>