[gatein-issues] [JBoss JIRA] Commented: (GTNPORTAL-764) Provide HTML tag that is compliant with all browser when javax.portlet.MimeResponse is used to render "script" element

Matt Wringe (JIRA) jira-events at lists.jboss.org
Mon Mar 1 18:32:10 EST 2010


    [ https://jira.jboss.org/jira/browse/GTNPORTAL-764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12517447#action_12517447 ] 

Matt Wringe commented on GTNPORTAL-764:
---------------------------------------

A patch has been committed into svn head (revision 1920) which fixes this issue.

The patch will make the output html, but it doesn't output proper xhtml (some tags will not be closed, ie meta). A futher patch will have to add that functionality.



> 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

        


More information about the gatein-issues mailing list