Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-721

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

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.1
    • 3.1.0
    • demo portlets
    • 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>
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ngriffin7a Neil Griffin (Inactive)
            ngriffin7a Neil Griffin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment