On 13/06/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
On Wed, June 13, 2007 3:36 am, Robin Vickery wrote:
> On 12/06/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
>> On Tue, June 12, 2007 9:33 am, Tijnema wrote:
>> > I meant reverse order :P
>>
>> That would be pretty broken.
>>
>> There's no guarantee that browsers will present the inputs in any
>> order at all, even though they all seem (so far) to follow the
>> convention of presenting them in the order they appear in the form.
>>
>> If, however, one browser decides tomorrow to use the "tab" order
>> instead, and your code breaks because of that, it's your fault, not
>> the browser's.
>
> The HTML spec says that form elements should be presented in the order
> they appear in the document. If the browser doesn't conform to spec,
> it's not his fault.
>
> From the HTML 4.01 Specification:
>
> "The control names/values are listed in the order they appear in the
> document. The name is separated from the value by `=' and name/value
> pairs are separated from each other by `&'."

Cool!

I wonder if that came about as a result of HTML 3.x "issues"... :-)

Might be where I remembered the ordering issue from.

I guess it's okay to require HTML 4.01 or higher now, eh?...

Well, it'd be pretty safe to require HTML 2.0 or higher.

From the HTML 2.0 Spec [RFC-1866]

8.2.1 part 2

"The fields are listed in the order they appear in the
document with the name separated from the value by `=' and
the pairs separated from each other by `&'. Fields with null
values may be omitted."


-robin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to