[whatwg] [wf2] 2.3. Changes to existing controls

Anne van Kesteren fora at annevankesteren.nl
Mon Mar 21 04:17:04 PST 2005


# The children of a form element must be block-level elements, unless
# one of the ancestors of the form element is a td, th, li, dd, dt, or
# block-level element other than div, in which case either block-level
# or inline-level content is allowed (but not both). input  elements of
# type hidden may be placed anywhere (both in inline contexts and block
# contexts).

Why does the content model of the FORM element have to be so difficult? 
Why can't it be either block- or  inline-level irrespective of its 
parent element?

(Note also that the block- or inline-level model can't be described by a 
DTD, only with a schema, but I don't believe that is a problem, is it?)


-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>




More information about the whatwg mailing list