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

Carl Franks fireartist at gmail.com
Wed Nov 8 14:33:45 GMT 2006


On 08/11/06, Andreas Marienborg <omega at palle.net> wrote:
> I think the idea of moving away from autocreating the container is
> probably a good idea.
>
> What I would like it to do is to refuse to add non-block elements
> directly to the form tag, so you ensure that they create the block
> themselves. That would also make it easier to find the places with
> missing containers as they would create deaths in tests.

I like the way you think - if we're going to break things, make if
fatal so they /notice/.
This would definitely justify a major version number upgrade ;)

This is actually the behaviour of xhtml_strict(1) - we could turn that
on by default, but I was considering eventually expanding it so it
wouldn't allow you to add attributes to elements which aren't valid
xhtml - that might be going too far for default behaviour?

> supporting HTML4 should perhaps then be another method on $result in
> addition to ->as_xml, perhaps as_html_anno_1999 or somesuch :p

Touché

Carl



More information about the Html-widget mailing list