[jifty-devel] Re: [Jifty-commit] r2340 -
Template-Declare/lib/Template/Declare
Jesse Vincent
jesse at bestpractical.com
Wed Dec 6 11:41:14 EST 2006
> Log:
> * Template::Declare - Revert obra++'s treatment:
>
> # default to <tag/> rather than <tag></tag> if there's no content
>
> and added this comment:
>
> # We should, in theory, default to <tag /> rather than <tag></tag> if there's no content,
> # but until all we output is strict XHTML, "<iframe src='...' />" and "<a name='...' />"
> # are rendered incorrectly by gecko -- they require the use of an explicit closing tag
> # So intead of the correct treatment:
> #
> # $BUFFER .= $buf." />";
> #
> # we supply a closing tag for now:
> #
> $BUFFER .= $buf."></$tag>";
>
>
The problem we run into is </img> and </meta> which make my validators
very, very unhappy. I think when I started, we had a place to record
rendering hints about some sorts of tags. would that be a sane
solution here?
More information about the jifty-devel
mailing list