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

<script src=""> generates extra html comments

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.1.3, 1.1.4, 1.1.5
    • Fix Version/s: None
    • Component/s: General
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: