Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
Resin or Tomcat, Internet Explorer. Works in Mozilla Firefox.
Description
The DTD for XHTML requires that script tags have a closing tag:
<script src="test.js" />
is illegal, even if the body content is empty. It must be written as:
<script src="test.js"></script>
For more information, see Appendix C.3 in the w3 XHTML guidelines for element minimization:
http://www.w3.org/TR/xhtml1/#guidelines
JSP 2.0 is automatically shortening the script tag, even if it is written as <script></script>, because the body of the script is empty. This causes Internet Explorer to display a blank page.
To fix, place an empty <jsp:text></jsp:text> tag in between the script elements.
Patch enclosed.
Checklists
Acceptance criteria