Always output a closing </script> tag
Brought to you by:
alfredodeza,
rick446
Currently, in XHTML mode, Kajiki outputs javascript imports as self-closing tags, like this:
<script src='/static/js/somescript.js' />
That does not work:
http://stackoverflow.com/questions/69913/why-dont-self-closing-script-tags-work
Although that should be accepted by Kajiki as input, when outputting it should always write:
<script src='bla'></script>
Discussion: Kajiki and HTML and XML modes
Anonymous
Hear hear. I had to put literal('') inside my script tag to avoid incorrect output!
Always outputting
<script></script>
may not be desirable for all XML documents. My approach to address this issue was to introduce a new'xhtml'
mode in theXMLTemplate
class. It uses a new minimal set of XHTML tags that may be omitted for XHTML.A new mode is probably a rather big change, but I'll attach the patch against Kajiki 0.3.5 for discussion.