cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Heinicke (JIRA) <>
Subject [jira] Closed: (COCOON-556) incorrect script tags in xhtml (and missing newlines)
Date Fri, 13 Oct 2006 12:46:40 GMT
     [ ]

Jörg Heinicke closed COCOON-556.

    Resolution: Won't Fix

Hmm, I want to re-close this issue immediately. Sorry, but I don't want to fix buggy browser
behavior. There was a thread about this topic on the users list lately:
So are you talking about *real* XHTML or anything that looks like XHTML or HTML 4?

I think Cocoon behaves absolutely correct and you should not fix it in the source document
or stylesheet at all. If you want to influence it, adapt the *serializer*. I know both the
standard XMLSerializer and HTMLSerializer don't provide many possibilities to adapt their
behaviour. But there are alternatives in the serializer block.

Another possibility is to add a further transformation step (xslt) and to add a non-breaking
space to each empty script element. This would also prevent other sources of empty script
elements breaking your site.


> incorrect script tags in xhtml (and missing newlines)
> -----------------------------------------------------
>                 Key: COCOON-556
>                 URL:
>             Project: Cocoon
>          Issue Type: Bug
>          Components: * Cocoon Core
>    Affects Versions: 2.0.5-dev (Current CVS)
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Ralf Hauser
>         Assigned To: Cocoon Developers Team
>         Attachments: cforms-avoid_empty_script_tags.diff
> When viewing the forrest myprojects sample site with xhtml, but Mozilla (Build
> 2003010808) and MSIE 6 are unable to render it properly.
> The reason appears to be
> <script src="skin/breadcrumbs.js" language="JavaScript" type="text/javascript"
> /> where both browsers mentioned thereafter no longer parse all subsequent code
> until the next </script> is encountered (unfortunately this is only at the very
> end of the page afer the LastModified script.).
> When serializing it as html, proper </script> end tags are used even if the
> script is empty like the above "breadcrumb".
> A further little nuisance is that the xhtml serializers do not add newlines
> while the regular html serializer does. The effect is that view source of
> browsers is almost unreadable and also in emacs, such source is very hard to
> look at when basically all in one line wrapped dozens of times. This, however
> doesn't seem to have impacted the rendering by the browsers.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message