(method="post" || method="POST") && (method="get" || method="GET")

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Let's not argue about semantics. Let's talk about semasiology.

Do specifications exist for using mixed case, upper case,
lower case for the contents of the method employed?

My own preferences lean towards the all lower-case
model, simply because it reads a little easier when deployed
with other XHTML semaphorings.

Jim Carlock
Post replies to the group.

Re: (method="post" || method="POST") && (method="get" || method="GET")

Jim Carlock wrote:
Quoted text here. Click to load it

http://www.w3.org/TR/html401/interact/forms.html#adef-method says
"case-insensitive", so if you are using HTML you can do as you please.

http://www.w3.org/TR/xhtml1/#h-4.11 says the values of enumerated
variables such as these must be in lower case, so if you are using XHTML
1.0 Strict then it's lower case only.

Finally, http://www.w3.org/TR/xhtml11/changes.html#a_changes lists no
change related to attribute value case, so it appears that lower case is
the only option if you are using XHTML 1.1.

Quoted text here. Click to load it

So it looks like you are in luck, since the XHTML definitions agree with
your preference.  :-)

Chris Beall

Site Timeline