[11434] in www-talk@info.cern.ch
Re: order of form fields
daemon@ATHENA.MIT.EDU (Dan Connolly)
Mon Sep 27 16:15:50 1999
Message-Id: <37EFCC6C.DACD9BE3@w3.org>
Date: Mon, 27 Sep 1999 14:58:36 -0500
From: Dan Connolly <connolly@w3.org>
Mime-Version: 1.0
To: Dmitry Beransky <dmitry@ostankino.ucsd.edu>
Cc: www-talk@w3.org
Content-Type: multipart/alternative;
boundary="------------15442619ABA47CBEE51237A7"
Resent-From: www-talk@w3.org
--------------15442619ABA47CBEE51237A7
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Dmitry Beransky wrote:
> Hi,
>
> This question came up on one of the perl development lists. Once again, I
> remember reading about this somewhere in a spec, but where? I could have
> sworn that it was stated that user agents are not required to return the
> fields in the same order they were parsed from the html stream. Does
> anyone know which spec it was?
Since HTML 2.0 user agents are required to preserve order:
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 `&'.
-- Form Submission in HTML 2.0
The relevant section from HTML 4.0 says the same thing.
--
Dan Connolly, W3C
--------------15442619ABA47CBEE51237A7
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Dmitry Beransky wrote:
<blockquote TYPE=CITE>Hi,
<p>This question came up on one of the perl development lists. Once
again, I
<br>remember reading about this somewhere in a spec, but where? I could
have
<br>sworn that it was stated that user agents are not required to return
the
<br>fields in the same order they were parsed from the html stream.
Does
<br>anyone know which spec it was?</blockquote>
<p><br>Since HTML 2.0 user agents are required to preserve order:
<blockquote>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 `&'.
<br>
<address>
<a href="http://www.w3.org/MarkUp/html-spec/html-spec_8.html#SEC8.2">--
Form Submission</a> in <a href="http://www.w3.org/MarkUp/html-spec/">HTML
2.0</a></address>
</blockquote>
The <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.4">relevant
section</a> from <a href="http://www.w3.org/TR/REC-html40/">HTML 4.0</a>
says the same thing.
<p>--
<br><a href="http://www.w3.org/People/Connolly/">Dan Connolly</a>, <a href="http://www.w3.org/">W3C</a>
<br> </html>
--------------15442619ABA47CBEE51237A7--