[Html-widget] opinions of removing implicit fieldset / breaking
back-compat
Andreas Marienborg
omega at palle.net
Wed Nov 8 14:38:23 GMT 2006
On 8. nov. 2006, at 15.33, Carl Franks wrote:
> 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?
>
I would say that would be going too far for default, atleast since
exploiting attributes not in the xhtml spec is something I have taken
rather a liking too for passing stuff to javascript eventhandlers :)
>> supporting HTML4 should perhaps then be another method on $result in
>> addition to ->as_xml, perhaps as_html_anno_1999 or somesuch :p
>
> Touché
Man I feel like PC in the mac add, I still dont understand when and
how to use that expression :p
andreas
More information about the Html-widget
mailing list