views:

79

answers:

0

Hello everyone,

I am using the TW for recaptcha, integrated everything as shown in the examples. When sending the ReCaptcha to my template, my whole page output just cuts off.

I have traced back the problem to the javascript code in the widget. It looks like this:

<script ....></script>

Only the dotted area contains some data, but the script body is empty. Genshi then "optimizes" the output to

<scipt ... />

which seems invalid XHTML to me. Firefox does not detect the end of the area and cuts off the entire page ouput after this.

I temporarily fixed this problem by patching the widget: (the nbsp is a real one, just had to put a space into it so it gets displayed here on stack overflow)

<script ....>& nbsp;</script>

So it doesnt get converted by Genshi. Has anyone else observed this behaviour? I cannot use Genshi's HTML() method to flag this as HTML and make Genshi leave it alone, because the widget itself generates the output, I do not have any control over how the output is sent to the template.

Maybe any of you can try to reproduce this and let me know.

edit:

This refers to exactly my problem, their example even uses my problem (script tag) http://genshi.edgewall.org/wiki/Documentation/streams.html#id1 does anyone know how to get TW to use this?

Greetings,

Tom