You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2013/09/11 15:50:13 UTC

svn commit: r1521842 - in /tomcat/trunk/webapps/docs: images/docs-stylesheet-ie-fix.css tomcat-docs.xsl

Author: markt
Date: Wed Sep 11 13:50:13 2013
New Revision: 1521842

URL: http://svn.apache.org/r1521842
Log:
https://issues.apache.org/bugzilla/show_bug.cgi?id=55383
IE<=9 fixes for Tomcat 8 docs

Added:
    tomcat/trunk/webapps/docs/images/docs-stylesheet-ie-fix.css   (with props)
Modified:
    tomcat/trunk/webapps/docs/tomcat-docs.xsl

Added: tomcat/trunk/webapps/docs/images/docs-stylesheet-ie-fix.css
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/images/docs-stylesheet-ie-fix.css?rev=1521842&view=auto
==============================================================================
--- tomcat/trunk/webapps/docs/images/docs-stylesheet-ie-fix.css (added)
+++ tomcat/trunk/webapps/docs/images/docs-stylesheet-ie-fix.css Wed Sep 11 13:50:13 2013
@@ -0,0 +1,22 @@
+@charset "utf-8";
+/*
+* Copyright 2002-2013 The Apache Software Foundation
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+/* This is a CSS hack for old IEs (IE ≤ 9). */
+
+#header > div {
+  background-color: #F8F3E4;
+}
\ No newline at end of file

Propchange: tomcat/trunk/webapps/docs/images/docs-stylesheet-ie-fix.css
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: tomcat/trunk/webapps/docs/tomcat-docs.xsl
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/tomcat-docs.xsl?rev=1521842&r1=1521841&r2=1521842&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/tomcat-docs.xsl (original)
+++ tomcat/trunk/webapps/docs/tomcat-docs.xsl Wed Sep 11 13:50:13 2013
@@ -72,6 +72,14 @@
     <xsl:value-of select="$relative-path"/><xsl:value-of select="$home-stylesheet"/>
   </xsl:variable>
   <link href="{$css-src}" rel="stylesheet" type="text/css"/>
+
+  <!-- CSS hack for IEs ≤ 9. -->
+  <xsl:variable name="css-iefix-src"><xsl:value-of select="$relative-path"/>/images/docs-stylesheet-ie-fix.css</xsl:variable>
+  <xsl:comment><![CDATA[[if IE]><link href="]]><!--
+    Note: The following <xsl:value-of> will not correctly encode HTML chars as this is a comment.
+    But as it is a fix for old IEs, it can be removed in future.
+  --><xsl:value-of select="$css-iefix-src"/><![CDATA[" rel="stylesheet" type="text/css"/><![endif]]]></xsl:comment>
+
   <style type="text/css" media="print"><![CDATA[
     .noPrint { display: none; }
     #middle > div > div#mainLeft { display: none; }
@@ -144,7 +152,11 @@
   <body>
   <div id="wrapper">
   <!-- Header -->
+  <!-- Workaround for old IEs: use <div id="..."> instead of <header id="...">, otherwise the CSS will not apply.
+       IE ≥ 10 dropped support for conditional comments in Standards Mode, so there it will use <header>. -->
+  <xsl:comment><![CDATA[[if IE]><div id="header"><![endif]]]></xsl:comment><xsl:comment><![CDATA[[if !IE]>]]></xsl:comment>
   <header id="header">
+    <xsl:comment><![CDATA[<![endif]]]></xsl:comment>
     <div>
       <div>
         <xsl:if test="project/logo">
@@ -167,7 +179,10 @@
         <div style="clear: left;"/>
       </div>
     </div>
+    <!-- Workaround for old IEs, see above. -->
+    <xsl:comment><![CDATA[[if IE]></div><![endif]]]></xsl:comment><xsl:comment><![CDATA[[if !IE]>]]></xsl:comment>
   </header>
+  <xsl:comment><![CDATA[<![endif]]]></xsl:comment>
 
   <div id="middle">
     <div>
@@ -218,9 +233,14 @@
   </div>
 
   <!-- Footer -->
+  <!-- Workarounds for old IEs, see above. -->
+  <xsl:comment><![CDATA[[if IE]><div id="footer"><![endif]]]></xsl:comment><xsl:comment><![CDATA[[if !IE]>]]></xsl:comment>
   <footer id="footer">
+    <xsl:comment><![CDATA[<![endif]]]></xsl:comment>
     Copyright © 1999-<xsl:value-of select="$year"/>, The Apache Software Foundation
+    <xsl:comment><![CDATA[[if IE]></div><![endif]]]></xsl:comment><xsl:comment><![CDATA[[if !IE]>]]></xsl:comment>
   </footer>
+  <xsl:comment><![CDATA[<![endif]]]></xsl:comment>
 </div>
 </body>
 </html>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org