<?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>23116</bug_id>
          
          <creation_ts>2013-08-31 14:06:43 +0000</creation_ts>
          <short_desc>Form method attribute only accepts &apos;get&apos; and &apos;post&apos;</short_desc>
          <delta_ts>2013-09-03 17:25:23 +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 spec</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Moo">eldmannen</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>cmhjones</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>robin</cc>
    
    <cc>synodinos</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>92780</commentid>
    <comment_count>0</comment_count>
    <who name="Moo">eldmannen</who>
    <bug_when>2013-08-31 14:06:43 +0000</bug_when>
    <thetext>As per chapter 4.10.19.5 Form submission

The &apos;method&apos; attribute of the &apos;form&apos; element only accepst the values &apos;get&apos; and &apos;post&apos;.

It does not support other valid and standard HTTP request methods such as PUT and DELETE which are useful when building RESTful web applications and services.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92815</commentid>
    <comment_count>1</comment_count>
    <who name="Dio Synodinos">synodinos</who>
    <bug_when>2013-09-02 11:38:10 +0000</bug_when>
    <thetext>These seem to have been dropped in 2010 [1] because of lack of use cases [2]. Do you have any use cases to suggest?

[1] http://www.w3.org/TR/2010/WD-html5-diff-20101019/#changes-2010-06-24
[2] http://lists.w3.org/Archives/Public/public-html/2010Sep/0209.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92822</commentid>
    <comment_count>2</comment_count>
    <who name="Moo">eldmannen</who>
    <bug_when>2013-09-02 12:56:03 +0000</bug_when>
    <thetext>== Use case for DELETE ==
A page has a list of favorites/bookmarks.
Next to each bookmark is a &apos;input&apos; element of type &apos;submit&apos;.

When submitted, it submit a DELETE /Bookmark/123 request.

The server removes the bookmark for that user from the database, and returns a page stating &quot;Bookmark removed&quot;.

&lt;form action=&quot;/Bookmark/123&quot; method=&quot;delete&quot;&gt;
  &lt;input type=&quot;submit&quot; value=&quot;Delete&quot; /&gt;
&lt;/form&gt;


== Use case for PUT ==
User clicks on &quot;Edit profile&quot;.
User changes text, and presses the submit button.
Server updates the user&apos;s profile with the new data and returns a confirmation.

&lt;form action=&quot;/Profile/&quot; method=&quot;put&quot;&gt;
  &lt;textarea name=&quot;profile&quot; cols=&quot;80&quot; rows=&quot;10&quot;&gt;&lt;/textarea&gt;
  &lt;input type=&quot;submit&quot; value=&quot;Update profile&quot; /&gt;
&lt;/form&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92828</commentid>
    <comment_count>3</comment_count>
    <who name="Dio Synodinos">synodinos</who>
    <bug_when>2013-09-02 15:29:25 +0000</bug_when>
    <thetext>Isn&apos;t this covered by XHR Level 2 which all browsers support?

(In reply to comment #2)
&gt; == Use case for DELETE ==
&gt; A page has a list of favorites/bookmarks.
&gt; Next to each bookmark is a &apos;input&apos; element of type &apos;submit&apos;.
&gt; 
&gt; When submitted, it submit a DELETE /Bookmark/123 request.
&gt; 
&gt; The server removes the bookmark for that user from the database, and returns
&gt; a page stating &quot;Bookmark removed&quot;.
&gt; 
&gt; &lt;form action=&quot;/Bookmark/123&quot; method=&quot;delete&quot;&gt;
&gt;   &lt;input type=&quot;submit&quot; value=&quot;Delete&quot; /&gt;
&gt; &lt;/form&gt;
&gt; 
&gt; 
&gt; == Use case for PUT ==
&gt; User clicks on &quot;Edit profile&quot;.
&gt; User changes text, and presses the submit button.
&gt; Server updates the user&apos;s profile with the new data and returns a
&gt; confirmation.
&gt; 
&gt; &lt;form action=&quot;/Profile/&quot; method=&quot;put&quot;&gt;
&gt;   &lt;textarea name=&quot;profile&quot; cols=&quot;80&quot; rows=&quot;10&quot;&gt;&lt;/textarea&gt;
&gt;   &lt;input type=&quot;submit&quot; value=&quot;Update profile&quot; /&gt;
&gt; &lt;/form&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92830</commentid>
    <comment_count>4</comment_count>
    <who name="Moo">eldmannen</who>
    <bug_when>2013-09-02 17:36:09 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Isn&apos;t this covered by XHR Level 2 which all browsers support?

Oh, yes it is, according to § 4.7.1
http://www.w3.org/TR/XMLHttpRequest2/#the-open-method

It supports CONNECT, DELETE, GET, HEAD, OPTIONS, POST, PUT, TRACE, and TRACK.

I didn&apos;t think of this. Then it is possible to use XHR so it is less needed for forms. Although, it might be useful for forms too if the above use cases are rational and sane (they might not be?).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92852</commentid>
    <comment_count>5</comment_count>
    <who name="Robin Berjon">robin</who>
    <bug_when>2013-09-03 11:18:18 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; I didn&apos;t think of this. Then it is possible to use XHR so it is less needed
&gt; for forms. Although, it might be useful for forms too if the above use cases
&gt; are rational and sane (they might not be?).

EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the Editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this document:

   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: none
Rationale: It could indeed be interesting in theory, but in practice and as indicated in the message quoted in #1 it would require figuring out the interaction model and how to set some headers along the way. Without those, the addition isn&apos;t very useful. In fact, even with those the chances are pretty big that the default interaction won&apos;t be what developers want, and people will have to resort to XHR anyway. XHR works well for this, so the need is met.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92854</commentid>
    <comment_count>6</comment_count>
    <who name="Cameron Jones">cmhjones</who>
    <bug_when>2013-09-03 11:44:53 +0000</bug_when>
    <thetext>There is an active change proposal for additional form methods, registered under issue 195 - see here for details:

http://www.w3.org/html/wg/tracker/issues/195


For a completed extension specificaion see:

http://cameronjones.github.io/form-http-extensions/index.html


Please send feedback and/or comments to public-html or public-html-comments.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>