diff options
author | Curtis D'Entremont | 2006-04-26 17:18:16 +0000 |
---|---|---|
committer | Curtis D'Entremont | 2006-04-26 17:18:16 +0000 |
commit | 46ac8857057bb6fcb6f5117c7bfef7d9b4355532 (patch) | |
tree | da47a59e790e9b0852d883802f1d4c5f9e29ba96 /org.eclipse.ua.tests/base/org/eclipse/ua | |
parent | 479dfa4ec39187dd1fe6b9e19408ed904bca39ee (diff) | |
download | eclipse.platform.ua-46ac8857057bb6fcb6f5117c7bfef7d9b4355532.tar.gz eclipse.platform.ua-46ac8857057bb6fcb6f5117c7bfef7d9b4355532.tar.xz eclipse.platform.ua-46ac8857057bb6fcb6f5117c7bfef7d9b4355532.zip |
138646 Test failures on 5.0 JRE
Diffstat (limited to 'org.eclipse.ua.tests/base/org/eclipse/ua')
-rw-r--r-- | org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/XHTMLUtil.java | 15 |
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 |