[jira] [Created] (PLUTO-721) The <script> text inside headSectionMarkup.jsp (PortletV3Demo) is not surrounded by //<![CDATA[...//]]>

"Neil Griffin (JIRA)" <[email protected]>
Newsgroups gmane.comp.jakarta.pluto.devel
Message-ID <[email protected]>
Neil Griffin created PLUTO-721:
----------------------------------

             Summary: The <script> text inside headSectionMarkup.jsp (PortletV3Demo) is not surrounded by //<![CDATA[...//]]>
                 Key: PLUTO-721
                 URL: https://issues.apache.org/jira/browse/PLUTO-721
             Project: Pluto
          Issue Type: Bug
          Components: demo portlets
    Affects Versions: 3.0.1
            Reporter: Neil Griffin
            Assignee: Neil Griffin
             Fix For: 3.0.2


The following {{script}} element is not parseable by an XML parser because the text not surrounded by {{//<![CDATA[...//]]>}}:
{code:javascript|title=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>
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.