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

Evert Van dansen evertvandansen at ymail.com
Fri Dec 21 03:39:43 PST 2012


> From: Anne van Kesteren <annevk at annevk.nl>

><evertvandansen at 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?




More information about the whatwg mailing list