Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-9829

data-sly-element should correctly handle void elements

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Scripting Sightly Engine 1.0.0, Scripting HTL Compiler 1.0.0, Scripting HTL Compiler 1.1.0-1.4.0, Scripting HTL Compiler 1.2.0-1.4.0
    • Scripting
    • None

    Description

      The current implementation of data-sly-element doesn't correctly handle void elements which will replace the original element on which the block element was placed:

      When ${item.element.name} evaluates to link or meta, the element will have a closing tag in the following example, although both link and meta are void elements:

      <script data-sly-element="${item.element.name @ context='unsafe'}"></script>
      

      Attachments

        Issue Links

          Activity

            People

              radu Radu Cotescu
              radu Radu Cotescu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h