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

Self closing DIV when using 'html' context in Sightly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • Scripting Sightly Engine 1.0.0
    • None
    • Scripting
    • None

    Description

      When I do:
      ${'<div></div>' @context='html'}

      It outputs invalid HTML, it self-closes the element:
      <div/>

      Only a set number of elements are permitted to self-close - http://xahlee.info/js/html5_non-closing_tag.html.

      Attachments

        Activity

          People

            Unassigned Unassigned
            danchapman-pearson Dan Chapman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: