Closed GoogleCodeExporter closed 9 years ago
Fixed in 0.9.1, but partially.
What's fixed is if JS block is wrapped with CDATA then it will be compressed
correctly. But if CDATA is put inside comments (for older browsers) those
comments
will be treated as regular comments and removed by YUI. I can't solve this
properly
without writing JS parser, so if you want to keep browser compatibility and
CDATA,
then a workaround would be either disabling inline JS compression all together
or
putting inline JS into external files.
Style tags wrapped in CDATA blocks were handled by YUI correctly already, but
again
if you put CDATA inside comment they will be removed. Maybe this feature should
be
handled on YUI compressor side better.
Thanks.
Original comment by serg472@gmail.com
on 6 Feb 2010 at 6:47
Original issue reported on code.google.com by
werner.g...@gmail.com
on 6 Feb 2010 at 11:32