[whatwg] more on nested forms

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