Re: PUT and DELETE methods in form@method

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="...">
</form>
Why must I do it like this:
<form method="post" action="...">
<input type="hidden" name="_method" value="PUT" id="_method">
</form>
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).

Regards,
Dominik

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