This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 10388 - Canonical case for GET/POST/PUT/DELETE should be lowercase instead of uppercase, to match browsers
Summary: Canonical case for GET/POST/PUT/DELETE should be lowercase instead of upperca...
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
Depends on:
Reported: 2010-08-17 19:03 UTC by contributor
Modified: 2010-10-04 14:28 UTC (History)
6 users (show)

See Also:


Description contributor 2010-08-17 19:03:09 UTC

Should the canonical case for GET/POST/PUT/DELETE be lowercase instead of
uppercase?  IE (8 and 9PP4) seem to treat it as lowercase, and they're the
only ones that canonicalize case at all here, as far as I can tell.  This
alerts "get" in IE8/9PP4 and "GeT" in all other browsers: <!doctype
html><script>var el = document.createElement("form");
el.setAttribute("method", "GeT"); alert(el.method);</script>

Posted from:
Comment 1 Aryeh Gregor 2010-08-26 21:07:21 UTC
In Firefox nightlies it now alerts "get", matching IE.  Also note that every single other enumerated attribute in all of HTML (at least among those limited to only known values) has lowercase canonical values.
Comment 2 Anne 2010-08-27 07:14:01 UTC
(Somewhat unfortunate as HTTP methods are case-sensitive.)
Comment 3 Ian 'Hixie' Hickson 2010-09-28 23:19:14 UTC
EDITOR'S RESPONSE: This is an Editor'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:

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter's comments.
Comment 4 contributor 2010-09-28 23:20:35 UTC
Checked in as WHATWG revision r5540.
Check-in comment: Make the .method IDL attribute return lowercase values.