Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.ua.tests/base/org/eclipse/ua/tests/util')
-rw-r--r--org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/XHTMLUtil.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/XHTMLUtil.java b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/XHTMLUtil.java
index b4dda1b26..efca75dd5 100644
--- a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/XHTMLUtil.java
+++ b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/XHTMLUtil.java
@@ -23,10 +23,23 @@ public class XHTMLUtil {
*/
public static String removeEnvironmentSpecificContent(String xhtml) {
/*
+ * Remove the space between the last attribute value of a tag and
+ * the closing part "/>". The Sun 1.5 JDK's XML DOM serializer will
+ * always remove it, and 1.4 will always add it, so need to pick one
+ * and adapt all documents to it.
+ *
+ * For example:
+ * <myElement myAttribute="myValue" />
+ * becomes:
+ * <myElement myAttribute="myValue"/>
+ */
+ xhtml = xhtml.replaceAll(" />", "/>");
+
+ /*
* The base tag is added before showing in browser. It contains an
* absolute path in filesystem.
*/
- xhtml = xhtml.replaceAll("<base href=\".*\" />", "");
+ xhtml = xhtml.replaceAll("<base href=\".*\"/>", "");
/*
* The order of the params for the meta tag comes out differently on

Back to the top