[Html-widget] opinions of removing implicit fieldset / breaking back-compat

Andreas Marienborg omega at palle.net
Wed Nov 8 13:25:14 GMT 2006


HTML::Widget really should produce valid XML/XHTML, as the method is  
named as_xml


andreas

On 8. nov. 2006, at 12.21, Carl Franks wrote:

> On 08/11/06, Ash Berlin <ash at cpan.org> wrote:
>> Michael Gray wrote:
>> > On Wed, 8 Nov 2006, Carl Franks wrote:
>> >
>> >> I'd like to remove the implicit sub-container: meaning, if you  
>> do this...
>> >> $widget->element( Textfield => 'foo' );
>> >> ...you no longer get an implicit Fieldset around the form  
>> elements.
>> >
>>
>> I'd like to point out that HTML as follows:
>>
>> <form ...><input type="text" .../></form>
>>
>> is invalid. A form tag can only contain block level elements (of  
>> which
>> input is not one)
>
> What I'm suggesting is that people should explicitly add their own  
> fieldset.
> That's why it would break backwards-compatability, because we'd have
> to change old code if we still want that fieldset after upgrading H-W.
>
> Your example is valid HTML 4.01 transitional, though.
> The following snippet passes W3's validator:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>        "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
> <title>test</title>
> </head>
> <body>
> <form action="/">
> <input type="text" name="foo">
> </form>
> </body>
> </html>
>
> _______________________________________________
> Html-widget mailing list
> Html-widget at lists.rawmode.org
> http://lists.rawmode.org/cgi-bin/mailman/listinfo/html-widget




More information about the Html-widget mailing list