W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2012

Re: [whatwg] what use-case is there for the name-attribute on a fieldset?

From: Anne van Kesteren <annevk@annevk.nl>
Date: Fri, 21 Dec 2012 12:24:57 +0100
Message-ID: <CADnb78i+qB97LzcNtf5od+Qw5RSeiQNgO0+maAiBQerCtopV-g@mail.gmail.com>
To: Evert Van dansen <evertvandansen@ymail.com>
Cc: "whatwg@lists.whatwg.org" <whatwg@lists.whatwg.org>
On Fri, Dec 21, 2012 at 11:57 AM, Evert Van dansen
<evertvandansen@ymail.com> wrote:
> Recently I noticed that HTML5 allows the name-attribute on a fieldset. This was not the case in HTML4.0.1.
> I did some tests and noticed that this name is *not* part of the POSTed data when submitting a form? So I was wondering when and for what purpose this name-attribute should or could be used?

<!DOCTYPE html>
<form><fieldset name=hah></fieldset></form>
<script>alert(document.forms[0].hah)</script>


-- 
http://annevankesteren.nl/
Received on Friday, 21 December 2012 11:25:28 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:50 UTC