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

> 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