4 ms·
IE (and pretty much every browser as far as I can tell) has always supported DELETE in XMLHttpRequests (or MSXML as the case may be). Presumably Rick is talking
by boucher 15y ago
IE (and pretty much every browser as far as I can tell) has always supported DELETE in XMLHttpRequests (or MSXML as the case may be). Presumably Rick is talking about DELETE working in <form>s.
- technoweenie 15y agoModified, thanks.
- nbpoole 15y agoI just tried it out myself: I can't get DELETE to work in IE9 forms. My code (I've tried it with both upper-case and lower-case DELETE): <form action="http://example.com" method="DELETE"> <input type="submit" /> </form>
- patio11 15y agoHTML 4 and HTML 5 both define method as either "get" or "post", mapping to GET and POST, with no other valid options. This compliant behavior is widespread, which is why Rails uses Javascript magic to fake the presence of a method POST or GET parameter in some of the built-in magic. (I only know this because I've special-cased it for an app I built.)
- elliottcarlson 15y agoThough, it should be noted that at one point HTML5 did plan to support PUT and DELETE, however that was then removed[1] again. Could be part of the confusion with some people. I would reference when it was added, but since it's a working draft spec, it's been removed and I can't find the original addition date - but I believe it to be mid to late 2009. [1] http://www.w3.org/TR/2010/WD-html5-diff-20101019/#changes-2010-06-24 http://www.w3.org/TR/2010/WD-html5-diff-20101019/#changes-20...
- justincormack 15y agoIt may go back in at some point, it was reopened a couple of months ago...
- libria 15y agoDELETE isn't supported by HTML forms. You'd have to submit it through ajax or Mozilla Poster/Chrome XHR Poster.