[
https://jira.jboss.org/jira/browse/GTNPORTAL-764?page=com.atlassian.jira....
]
Matt Wringe closed GTNPORTAL-764.
---------------------------------
Resolution: Done
Closing this jira, a fix has been committed into svn (revision 2063).
We are handling the script separately from the other tags.
The script tag will be handled as html so that it will not self close.
The other tags will be treated as xml so that they will be closed.
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
Assignee: Matt Wringe
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