I'm trying to migrate my web site from TG2.0 to TG2.1, I notice
somehow, the template rendering arguments for genshi might be changed
in TG2.1.  I found some tag be self-closed. For example,  the genshi
output xhtml like this

<script src="xxx" />

It generated a self-closed tag for script, which is not right, and
leads the browser can't parse the document correctly.  Same problem
can be found in permission adding page of a quick-started project with
genshi template.  Please reference following screenshot:

http://images.plurk.com/3803264_de72ce7669b1d4079e58db8fdc53d93c.jpg

And the problem was caused by this tag:

<textarea id="description" name="description" class="textarea"
rows="7" cols="50"/>

The textarea should not be self-closed, but somehow, genshi template
engine did that.  In TG2.0, I didn't see self-closed script or
textarea like this one in TG2.1.  I know how to solve this problem
which genshi, it is easy, switch the output method from "xhtml" to
"html" and it works.  But however,  I can't find any way to change the
output method of genshi easily with TG2, it seems the only way to do
it is to replace the rendering function?  Is that right?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to