MyFaces Core
  1. MyFaces Core
  2. MYFACES-1963

<script src=""> generates extra html comments

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor 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.

        Issue Links

          Activity

          Bruno Hondelatte created issue -
          Leonardo Uribe made changes -
          Field Original Value New Value
          Link This issue duplicates MYFACES-2801 [ MYFACES-2801 ]
          Leonardo Uribe made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Assignee Leonardo Uribe [ lu4242 ]
          Resolution Duplicate [ 3 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development