Hacker News new | comments | show | ask | jobs | submit login

I 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>



HTML 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.)


Though, 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-20...


It may go back in at some point, it was reopened a couple of months ago...


DELETE isn't supported by HTML forms. You'd have to submit it through ajax or Mozilla Poster/Chrome XHR Poster.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: