Provide HTML tag that is compliant with all browser when javax.portlet.MimeResponse is
used to render "script" element
-----------------------------------------------------------------------------------------------------------------------
Key: GTNPORTAL-764
URL:
https://jira.jboss.org/jira/browse/GTNPORTAL-764
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Environment: GateIn CR1
FF 3.5
Reporter: Tugdual Grall
The following code:
---
Element jsFile = response.createElement("script");
jsFile.setAttribute("type", "text/javascript");
jsFile.setAttribute("src", request.getContextPath() +
"/resources/my-javascript.js");
response.addProperty(MimeResponse.MARKUP_HEAD_ELEMENT, jsFile);
----
Renders:
<script src="/lab-010-portlet-html-header/resources/my-javascript.js"
type="text/javascript" />
On Firefox 3.5 this is buggy, the page is blank.
The only that it is working is
<script src="/lab-010-portlet-html-header/resources/my-javascript.js"
type="text/javascript" ></script>
providing non empty elements.
We should change our rendering process to render complete HTML tags
<XXX></XXX>
to be sure we are working with all browsers
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira