Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.1
-
None
Description
PortletV3Demo contains a file named headSectionMarkup.jsp — the following script element in the JSP is not parseable by an XML parser because the text not surrounded by //<![CDATA[...//]]>:
headSectionMarkup.jsp
<script type="text/javascript"> (function () { 'use strict'; var cdiv = '<portlet:namespace/>cookieDiv', bootstrap = function () { var cookies = document.cookie.split(';'), ii, markup; markup = '<p>Current Cookies:</p>'; for (ii = 0; ii < cookies.length; ii++) { /* make sure parser eats & character */ markup += cookies[ii] + '<br/>'; } document.getElementById(cdiv).innerHTML=markup; }; // execute when document has been loaded window.addEventListener('load', bootstrap, false); }()); </script>