Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2429

Script text added by RenderSupport.addScript() should be added raw (with XML elements not encoded as entities)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.12
    • 5.0.14
    • tapestry-core
    • None

    Description

      In a component, I am using
      RenderSupport.addScript(str),
      where
      String str = "new tooltip(\"tooltipA\", \"<span
      id='tooltip1'>A tooltip over link<span>\", 10, 20,
      false,0)";

      But at the bottom of the rendered html, < and > are escaped and rendered as
      < and > respectively.

      Maybe RenderSupport.addScript should have an option to render raw text.

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            matmsh Shing Hing Man
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: