Facelets double commenting embedded javascripts
-----------------------------------------------

                 Key: MYFACES-2781
                 URL: https://issues.apache.org/jira/browse/MYFACES-2781
             Project: MyFaces Core
          Issue Type: Bug
          Components: General
    Affects Versions: 2.0.1, 2.0.2-SNAPSHOT
            Reporter: Werner Punz


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.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to