Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Site with html in CDATA tag in script tag gets broken by rewrite_javascript #542

@GoogleCodeExporter

Description

@GoogleCodeExporter
http://www.pro-it-support.co.uk/?ModPagespeed=off has this:

<script type="text/javascript">
<![CDATA[<link 
href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700&subset=latin,lat
in-ext' rel='stylesheet' type='text/css'>]]>
</script>

http://www.pro-it-support.co.uk/?ModPagespeedFilters=rewrite_javascript has 
this:

<script type="text/javascript">//<![CDATA[
<![CDATA[<link 
href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700&subset=latin,lat
in-ext'rel='stylesheet'type='text/css'>]]>
//]]></script>

I think mod_pagespeed should not have added the extra CDATA tag.

Original issue reported on code.google.com by jmara...@google.com on 18 Oct 2012 at 12:12

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions