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: Evert Van dansen <evertvandansen@ymail.com>
Date: Fri, 21 Dec 2012 03:39:43 -0800 (PST)
Message-ID: <1356089983.28608.YahooMailNeo@web121405.mail.ne1.yahoo.com>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: "whatwg@lists.whatwg.org" <whatwg@lists.whatwg.org>
> From: Anne van Kesteren <annevk@annevk.nl>

><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>
>


I am sorry, perhaps I misunderstand, but I do not see what the advantage is over using "regular" hooks (like id) in this case? Surely adding the name-attribute must have been a decision based on something specific?

Received on Friday, 21 December 2012 11:40:09 UTC

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