You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by nd...@apache.org on 2012/04/27 21:29:20 UTC

svn commit: r1331550 - /httpd/httpd/trunk/docs/manual/style/xsl/common.xsl

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 -->