httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject svn commit: r1331550 - /httpd/httpd/trunk/docs/manual/style/xsl/common.xsl
Date Fri, 27 Apr 2012 19:29:20 GMT
Author: nd
Date: Fri Apr 27 19:29:19 2012
New Revision: 1331550

URL: http://svn.apache.org/viewvc?rev=1331550&view=rev
Log:
properly enclose inline javascript in HTML output.

Modified:
    httpd/httpd/trunk/docs/manual/style/xsl/common.xsl

Modified: httpd/httpd/trunk/docs/manual/style/xsl/common.xsl
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/style/xsl/common.xsl?rev=1331550&r1=1331549&r2=1331550&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/style/xsl/common.xsl (original)
+++ httpd/httpd/trunk/docs/manual/style/xsl/common.xsl Fri Apr 27 19:29:19 2012
@@ -313,11 +313,12 @@
 
 </div> <!-- /footer -->
 
-<script type="text/javascript"><![CDATA[
-    if (typeof(prettyPrint) !== undefined) {
-        prettyPrint();
-    }
-]]></script>
+<script type="text/javascript">
+<xsl:text disable-output-escaping="yes"><![CDATA[<!--//--><![CDATA[//><!--]]></xsl:text><![CDATA[
+if (typeof(prettyPrint) !== undefined) {
+    prettyPrint();
+}
+]]><xsl:text disable-output-escaping="yes"><![CDATA[//--><!]]]]>></xsl:text></script>
 </xsl:template>
 <!-- /bottom -->
 



Mime
View raw message