From 6b8474775ad1bb6850ef2c7a3c012811c3b408f6 Mon Sep 17 00:00:00 2001
From: Mark Craig <mark.craig@forgerock.com>
Date: Mon, 20 Feb 2012 13:33:21 +0000
Subject: [PATCH] Fix for COMMWEB-45: IE 8 seems to require DOCTYPE declaration in HTML to interpret CSS correctly

---
 opendj3/pom.xml |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/opendj3/pom.xml b/opendj3/pom.xml
index 8718440..c1d3976 100644
--- a/opendj3/pom.xml
+++ b/opendj3/pom.xml
@@ -398,11 +398,17 @@
               </preProcess>
 
               <postProcess>
+                <replace dir="${basedir}/target/docbkx/html/" token="&lt;/html&gt;">
+                  <include name="**/**/**/*.html" />
+                  <replacevalue>
+&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;
+&lt;html &gt;</replacevalue>
+                </replace>
                 <replace dir="${basedir}/target/docbkx/html/" token="&lt;/head&gt;">
                   <include name="**/**/**/*.html" />
                   <replacevalue>
-&lt;script src="http://code.jquery.com/jquery-latest.min.js"&gt;&lt;/script&gt;
-&lt;script&gt;
+&lt;script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"&gt;&lt;/script&gt;
+&lt;script type="text/javascript"&gt;
 // On double-click, reformat &lt;div class="screen"&gt; for easy copying.
 $(document).ready(function() {
   $(".screen").attr("title", "Double-click [-] to flatten lines.");
@@ -480,11 +486,17 @@
               </preProcess>
 
               <postProcess>
+                <replace dir="${basedir}/target/docbkx/html/" token="&lt;/html&gt;">
+                  <include name="**/**/*.html" />
+                  <replacevalue>
+&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;
+&lt;html &gt;</replacevalue>
+                </replace>
                 <replace dir="${basedir}/target/docbkx/html/" token="&lt;/head&gt;">
                   <include name="**/**/*.html" />
                   <replacevalue>
-&lt;script src="http://code.jquery.com/jquery-latest.min.js"&gt;&lt;/script&gt;
-&lt;script&gt;
+&lt;script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"&gt;&lt;/script&gt;
+&lt;script type="text/javascript"&gt;
 // On double-click, reformat &lt;div class="screen"&gt; for easy copying.
 $(document).ready(function() {
   $(".screen").attr("title", "Double-click [-] to flatten lines.");

--
Gitblit v1.10.0