Hi;

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

            <script type="text/javascript"
src="servlet:dojo:/resource/external/dojo/dojo/dojo.js"
             djConfig="parseOnLoad:true, isDebug:true"></script>

After serialising to xhtml, the output contains:

            <script type="text/javascript"
src="/dojo/resource/external/dojo/dojo/dojo.js"
             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
content...

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

            <script type="text/javascript"
src="servlet:dojo:/resource/external/dojo/dojo/dojo.js"
             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: 
http://www.nabble.com/how-can-i-force-a-serialiser-to-generate-a-%3C-close%3E-tag-even-if-the-body-is-empty---tp19158791p19158791.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to