Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2328

configuration.add(SymbolConstants.COMPONENT_RENDER_TRACING_ENABLED, "true") can break javascript by including HTML within Javascript

    XMLWordPrintableJSON

Details

    Description

      When COMPONENT_RENDER_TRACING_ENABLED is active, html comments can be included with Javascript code.

      Context: 5.4-beta-5
      Test done with uklance/tapestry-graphael/Pie Chart:
      Non /META-INF/assets compliant
      and the javascript part impacted was included in the .tml file.

      Example: https://github.com/uklance/tapestry-graphael/blob/master/tapestry-graphael-demo/src/main/resources/org/lazan/t5/graphael/demo/pages/PieChartDemo.tml

      error:
      ...
      \"font-weight\": 400 });\n }\n });\n }\n <!-BEGIN projects/Index:piechart (classpath:app/pages/projects/Index.tml, line 13)->)(chart, r);})()"
      ...

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            based2 Basile Chandesris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: