W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2005

[whatwg] more on nested forms

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 14 Oct 2005 20:17:04 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0510142015260.23945@dhalsim.dreamhost.com>
On Sun, 2 Oct 2005, Hallvord R M Steen wrote:
>
> Are the following assumptions correct?
> 
> * Submitting the inner form should submit successful controls associated 
> with the inner form only (like a normal form, not nested)

Correct.


> * Submitting the outer form should submit successful controls
> associated with the outer form INCLUDING those that in the markup are
> inside the inner form
> 
> Code example: given
> <form>
>     <input name="i1">
>     <form>
>         <input name="i2">
>     </form>
> </form>
> 
> should submitting the outer form also send the "i2" element?

No. Why would it? Submitting a form only submits elements that are 
associated with the form; i2 is not associated with the outer form.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 14 October 2005 13:17:04 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:43 UTC