[albatross-users] <alb-form> xhtml 'strict' conformance

Andrew McNamara andrewm at object-craft.com.au
Sun Apr 17 19:16:12 EST 2005


>I have a suggestion for a slight change of the behaviour of the <alb-form>
>tag. Depending on what Context class one is using, hidden <input>-tags
>containing __albform__ and/or __albstate__ are appended just before
>closing the form.
>
>Since in 'strict' XHTML putting an <input> tag directly inside a <form> is
>illegal,

Sigh - you are quite correct.

>I would suggest enclosing the tag with a <div>. Since the
>contents are not rendered (they are hidden, afterall), the <div> produces
>a box of zero proportions and therefore should not hurt (tested with
>Gecko, KHTML and Opera engines, could anyone check on IE?).
>
>What do you think? At the moment I have patched my albatross copy, but I
>find that a sub-optimal solution (since I have to pin the package on my
>system or it might be overwritten in the future, preventing it from
>getting future bugfixes).

I think your suggestion appropriate. I'll make the change. Thanks for the
heads-up.

-- 
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/



More information about the Albatross-users mailing list