Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0.0
-
None
Description
To reproduce this issue, create a portlet with the following code:
public void renderHeaders(HeaderRequest headerRequest, HeaderResponse headerResponse) throws PortletException, IOException { headerResponse.addDependency("myCDATAScript", null, null, "<script type=\"text/javascript\">" + "/* <![CDATA[ */ if (0 < 1) { console.log('0 is less than 1'); } // ]]>" + "</script>"); }
If the bug still exists an exception will appear in the logs and the script will not appear in the head section.