[jira] [Updated] (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 updated PLUTO-721:
-------------------------------
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[...//]]>}}:
{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}
was:
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}
> 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)