cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hussayn <>
Subject how can i force a serialiser to generate a </close>-tag even if the body is empty ?
Date Tue, 26 Aug 2008 10:38:25 GMT


i am experimenting with dojo and i got an expression like this inside my

	    <script type="text/javascript"
	     djConfig="parseOnLoad:true, isDebug:true"></script>

After serialising to xhtml, the output contains:

	    <script type="text/javascript"
	     djConfig="parseOnLoad:true, isDebug:true"/>

which is absolutely perfect... but for some reason the web browser (or dojo)
needs the closing "</script>" although the script tag does not contain any

I did not find any configuration parameter in cocoon, so i just added a fake
entry into the scripts body:

	    <script type="text/javascript"
	     djConfig="parseOnLoad:true, isDebug:true">&#160;</script>

That worked and now dojo (or my browser, or both???) seems to be happy.

But i don't like this hack very much. So how can i force cocoon (probably
the xhtml-serialiser ?) to create a tag-pair around an empty body ?

View this message in context:
Sent from the Cocoon - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message