Opened 15 years ago

Closed 15 years ago

#1530 closed defect (wontfix)

comment make template interpret wrong

Reported by: [email protected] Owned by: bill
Priority: high Milestone: 1.0
Component: Widgets Version: 0.3
Keywords: Cc:
Blocked By: Blocking:


At first,I found this problem when i try the widgetInTemplate property When i add some comment at the beginning of the template file. The widget will get interpret wrong.

Later, i try this on a common widget template definition, and it also make problem.So i think,this may be a defect. The problem code is look like this.

<!-- some comment here -->
    some template code here

Change History (1)

comment:1 Changed 15 years ago by bill

Milestone: 0.40.6
Resolution: wontfix
Status: newclosed

Putting a comment in the template file means that the template file contains two top level dom nodes (a comment node and the real node). A template can only be one dom node (or rather, one tree). So comments at the top are not allowed. Sorry!

Note: See TracTickets for help on using tickets.