[Html-widget] Fwd: [rt.cpan.org #20313] embed() discards top level controls

A. Pagaltzis pagaltzis at gmx.de
Mon Jul 10 18:28:22 CEST 2006


* Ash Berlin <ash at cpan.org> [2006-07-07 00:55]:
> it is by design, since the HTML standard says the only thing a
> form can contain is block level elements (div or fieldset
> mainly) so where would you put them? In another field set?
> Before embedded? After? etc. etc.

Inside the fieldset, where else? Fieldsets can be nested. Bung
this into the validator for a demonstration:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
     <head>
      <title>x</title>
     </head>
     <body>
      <form action="x">
       <fieldset>
         <input name="x"/>
         <fieldset>
          <input name="y"/>
         </fieldset>
       </fieldset>
      </form>
     </body>
    </html>

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



More information about the Html-widget mailing list