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

Anne van Kesteren annevk at annevk.nl
Fri Dec 21 03:24:57 PST 2012


On Fri, Dec 21, 2012 at 11:57 AM, Evert Van dansen
<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>


-- 
http://annevankesteren.nl/



More information about the whatwg mailing list