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

<script src=""> generates extra html comments

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 1.1.3, 1.1.4, 1.1.5
    • None
    • General
    • None

    Description

      When inserting a javascript source file, extra comments are added. For instance :

      <script type="text/javascript" src="test.js"><!-- --> </script>

      A way to remove these comments would be to generate comments inside write and writeText methods in org.apache.myfaces.shared.renderkit.html.HtmlResponseWriterImpl, and not in writeElement method. In this case, if no write or writeElement is issued, the unnecessary comments are not written to the output.

      Attachments

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              dsls Bruno Hondelatte
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: