ASF Bugzilla – Attachment 30815 Details for
Bug 55383
Improve markup and design of Tomcat's HTML pages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Adds work-arounds to Tomcat 8 Docs for IE ≤ 9.
TC-Docs-IE-Hacks.patch (text/plain), 3.51 KB, created by
Konstantin Preißer
on 2013-09-11 13:29:53 UTC
(
hide
)
Description:
Adds work-arounds to Tomcat 8 Docs for IE ≤ 9.
Filename:
MIME Type:
Creator:
Konstantin Preißer
Created:
2013-09-11 13:29:53 UTC
Size:
3.51 KB
patch
obsolete
>Index: webapps/docs/images/docs-stylesheet-ie-fix.css >=================================================================== >--- webapps/docs/images/docs-stylesheet-ie-fix.css (revision 0) >+++ webapps/docs/images/docs-stylesheet-ie-fix.css (working copy) >@@ -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 >Index: webapps/docs/tomcat-docs.xsl >=================================================================== >--- webapps/docs/tomcat-docs.xsl (revision 1521826) >+++ webapps/docs/tomcat-docs.xsl (working copy) >@@ -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>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 55383
:
30719
|
30735
|
30739
|
30740
|
30741
|
30760
|
30772
|
30778
|
30779
|
30786
|
30793
|
30797
|
30809
|
30812
|
30813
|
30814
|
30815
|
30818
|
30819
|
30824
|
30862
|
30863
|
30864