On 10/31/05, Jon Tirsen <[EMAIL PROTECTED]> wrote: > So that means the InPlaceEditor is producing valid XHTML right? > > On 11/1/05, Niels Leenheer <[EMAIL PROTECTED]> wrote: > > On 10/28/05, Jay Levitt <[EMAIL PROTECTED]> wrote: > > > Jon Tirsen wrote: > > > The INPUT field is in a FORM field. Isn't it valid to have an INPUT > > > field in a FORM tag? > > > > > > Apparently not - INPUT is an inline tag, and it needs to appear inside a > > > block tag, which FORM doesn't count as. Yeah, I know, it's always worked > > > for me, too.. :) > > > > INPUT is an inline element. FORM is a block element. > > > > Aside from this, there is simply no requirement that inline elements > > must appear inside a block element. The outer element defines which > > elements it can contain. So it is the other way around. > > > > In the case of the FORM element, it can contain any 'flow' element. > > 'Flow' elements are a collection of all block and inline elements. So > > the FORM element can legally contain an INPUT element.
HTML Transitional allows inputs in FORMs, but HTML Strict does not: Contents * In HTML 4.0 Strict, one or more SCRIPT or block-level elements except FORM * In HTML 4.0 Transitional, inline elements or block-level elements except FORM http://htmlhelp.com/reference/html40/forms/form.html Looking at the actual DTDs for XHTML: <!ENTITY % form.content "(%block; | %misc;)*"> http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_misc <!ENTITY % form.content "(#PCDATA | %block; | %inline; | %misc;)*"> http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Transitional -- rick http://techno-weenie.net _______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
