Supporting XHTML and older browsers (IE6) in WLP 9.2
698716Apr 28 2009 — edited May 8 2009Hi
We're trying to have a Portal that renders XHTML-1.0-TRANSITIONAL content.
In order to support older browsers, we have content-override set to "text/html".
However, WLP renders the script tags that link directly to .js files with just one self-closing tag.
<script src="/front/framework/skins/shared/js/Utils2.0.js" type="text/javascript" />
This confuses browsers, as it should (for compatability reasons) close it with an end tag, with emtpy content.
<script src="/front/framework/skins/shared/js/Utils2.0.js" type="text/javascript"></script>
Is there any way to control this behaviour?
Skeleton.xml
<ns:skeleton xmlns:ns="http://www.bea.com/servers/portal/framework/laf/1.0.0">
<ns:render-format>
<ns:preset>XHTML_1_0_TRANSITIONAL</ns:preset>
<ns:content-type-overrides>
<ns:override content-type="text/html" classification="allbrowsers"/>
</ns:content-type-overrides>
</ns:render-format>
</ns:skeleton>
client-classifications.xml
...
<classification name="allbrowsers" description="For everything">
<useragent-regex value=".*" priority="5" />
</classification>
...
beehive-netui-config.xml
...
<jsp-tag-config>
<doctype>xhtml1-transitional</doctype>
</jsp-tag-config>
...