W3C home > Mailing lists > Public > public-html-comments@w3.org > March 2011

Re: PUT and DELETE methods in form@method

From: Dominik Tomaszuk <ddooss@wp.pl>
Date: Wed, 30 Mar 2011 14:04:00 +0200
Message-ID: <4D931C30.70505@wp.pl>
To: Mounir Lamouri <mounir.lamouri@gmail.com>
CC: public-html-comments@w3.org
On 30.03.2011 00:02, Mounir Lamouri wrote:
> They were available and have been removed. They were even available in a
> Firefox 4 beta (but removed before the final).
I know that. The reason I ask, why it was removed? Why to do something 
RESTful I must do enormous tricks such as XMLHttpRequest and JavaScript? 
Or why I must use POST to tunnel PUT and DELETE? HTML uses HTTP. PUT and 
DELETE is normal methods in HTTP, it is not super-new specials methods. 
PUT is very similar to POST. For instance, to create a new entry I use 
POST, to replace/update I would like to use PUT. Why I cannot write:
<form method="put" action="...">
Why must I do it like this:
<form method="post" action="...">
<input type="hidden" name="_method" value="PUT" id="_method">
Or, why I can write like this:
var client = new XMLHttpRequest();
client.open("PUT", url);
And this:
var client = new XMLHttpRequest();
client.open("POST", url);
But I can't to the same in HTML forms, why?

> You can found here the reasons of the removal:
> http://www.w3.org/Bugs/Public/show_bug.cgi?id=10671
Well, I've seen it. But I do not find there any real reason to removal 
PUT and DELETE (and HEAD?) from spec. The reason that PUT and DELETE 
have no real use case for me is not true, because there are millions of 
RESTful impelemntations that use PUT and DELETE (of course, use of 
strange solutions because browsers do not support them).

Received on Wednesday, 30 March 2011 12:19:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:26:27 UTC