Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-2781

Facelets double commenting embedded javascripts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1, 2.0.2-SNAPSHOT
    • 2.0.1
    • General, JSR-314
    • None

    Description

      While I was testing the new head functionality I recognized an error which has not influenced browsers but influences my parsing routines (which rely on valid xhtml/xml markup for the head processing)

      <h:head>
      <script type="text/javascript"><!--
      var myCounterVar = Math.floor(Math.random() * 11)
      //--></script>
      </h:head>

      renders on the browser

      <script type="text/javascript"><!--
      <!--
      var myCounterVar = Math.floor(Math.random() * 11)
      //-->
      //--></script

      As you can see <!-- becomes <!-<!-
      and //-> becomes //> //->
      while this is fine for a javascript processor it is not for a parser which has to rely on valid markup.

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            werpu Werner Punz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: