Changes between Initial Version and Version 1 of Ticket #18891


Ignore:
Timestamp:
Sep 16, 2016, 1:49:21 PM (3 years ago)
Author:
bill
Comment:

Right, and this works in delite (which we meant as the successor to dijit). See #15399 (in addition to #5456 that you mentioned). No objection if somebody wants to fix it in Dojo V1 too.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18891

    • Property Component changed from HTML to Parser
    • Property Type changed from defect to enhancement
  • Ticket #18891 – Description

    initial v1  
    1010Comments are allowed within the template so long as they are within the outer most element.
    1111
     12{{{
    1213<div><!-- a comment --></div>  // works
    1314<!-- a comment --><div>...</div> // does not work.
    1415<div>...</div><!-- a comment --> // does not work.
     16}}}
    1517
    1618I am not in a position to develop on this project at this time, but it seems to me that the function doing the element count check to determine template validity might be a good place to remove an element in a template that is an html comment at the top level of the template.