[jira] [Closed] (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]>
     [ https://issues.apache.org/jira/browse/PLUTO-721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Neil Griffin closed PLUTO-721.
------------------------------
    Resolution: Fixed

Fixed in commit [bcbf1532491ba7114abb11f7e221420b4b6aebf3|https://github.com/apache/portals-pluto/commit/bcbf1532491ba7114abb11f7e221420b4b6aebf3]

> 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
>            Priority: Major
>             Fix For: 3.0.2
>
>
> 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[...//]]>}}:
> {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.