Re: Re: [WSG] Form question
Can anyone tell me why the HTML specification does not restrict form elements from appearing outside of the form tag? HTML 4.01 section 17.2.1: The elements used to create controls generally appear inside a FORM element, but may also appear outside of a FORM element declaration when they are used to build user interfaces. Another related question to ask... Why is putting a hidden input field, as the first child of a form element, disallowed? Mathew Robertson *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: Re: [WSG] Form question
Mathew Robertson wrote: Another related question to ask... Why is putting a hidden input field, as the first child of a form element, disallowed? Because it is an %inline element. The child element(s) of a form must be %block. http://www.w3.org/TR/html4/interact/forms.html#h-17.3 -- David Dorward http://dorward.me.uk/ *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: Re: [WSG] Form question
2009/7/15 Mathew Robertson mat...@optusnet.com.au: Another related question to ask... Why is putting a hidden input field, as the first child of a form element, disallowed? The HTML 4.01 DTD specifies that only block-level elements or script elements may appear as the immediate children of the FORM element; input elements are inline: http://www.w3.org/TR/html401/interact/forms.html#h-17.3 As to _why_ this is the case, I'm really not sure :-) Cheers, Nick. -- Nick Fitzsimons http://www.nickfitz.co.uk/ *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
RE: Re: [WSG] Form question
Hi Please remove me from your email distribution list. I am not sure why I am being Bc'd into these emails. Thanks Vicky -Original Message- From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On Behalf Of David Dorward Sent: Wednesday, 15 July 2009 11:52 PM To: wsg@webstandardsgroup.org Subject: Re: Re: [WSG] Form question Mathew Robertson wrote: Another related question to ask... Why is putting a hidden input field, as the first child of a form element, disallowed? Because it is an %inline element. The child element(s) of a form must be %block. http://www.w3.org/TR/html4/interact/forms.html#h-17.3 -- David Dorward http://dorward.me.uk/ *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
RE: Re: [WSG] Form question
Hi Please remove me from your email distribution list. I am not sure why I am being Bc'd into these emails. Thanks Vicky -Original Message- From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On Behalf Of Mathew Robertson Sent: Wednesday, 15 July 2009 11:35 PM To: wsg@webstandardsgroup.org Subject: Re: Re: [WSG] Form question Can anyone tell me why the HTML specification does not restrict form elements from appearing outside of the form tag? HTML 4.01 section 17.2.1: The elements used to create controls generally appear inside a FORM element, but may also appear outside of a FORM element declaration when they are used to build user interfaces. Another related question to ask... Why is putting a hidden input field, as the first child of a form element, disallowed? Mathew Robertson *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
RE: Re: [WSG] Form question
Hi Please remove me from your email distribution list. I am not sure why I am being Bc'd into these emails. Thanks Vicky -Original Message- From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On Behalf Of Nick Fitzsimons Sent: Wednesday, 15 July 2009 11:54 PM To: wsg@webstandardsgroup.org Subject: Re: Re: [WSG] Form question 2009/7/15 Mathew Robertson mat...@optusnet.com.au: Another related question to ask... Why is putting a hidden input field, as the first child of a form element, disallowed? The HTML 4.01 DTD specifies that only block-level elements or script elements may appear as the immediate children of the FORM element; input elements are inline: http://www.w3.org/TR/html401/interact/forms.html#h-17.3 As to _why_ this is the case, I'm really not sure :-) Cheers, Nick. -- Nick Fitzsimons http://www.nickfitz.co.uk/ *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***