Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-2763

<hst:headcontribution> strips javascript code from <script>-tag

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Outdated
    • 2.26.08
    • None
    • hst-api
    • Tomcat 7.x
    • Sprint 69

    Description

      The following code:

      <hst:headContribution category="jsFlag">
      <script>
      $(document).onload(function()

      { var jsflag = $('<input type="hidden" name="js_enabled" value="true"/>'); $('form').append(jsflag); }

      );
      </script>
      </hst:headContribution>

      and:
      <hst:headContributions categoryIncludes="jsFlag"/>

      results in:
      <script>
      <input type="hidden" name="js_enabled" value="true"/>
      </script>

      Obviously this is not the desired result, because all java script has been removed.

      The problem does not occur when the script-code is surrounded by CDATA tags, but it shouldn't be a problem without the CDATA-tags as well.

      Attachments

        Activity

          People

            Unassigned Unassigned
            daviddebos David de Bos
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: