Opened 13 years ago

Closed 13 years ago

#1530 closed defect (wontfix)

comment make template interpret wrong

Reported by: cenyongh@… Owned by: bill
Priority: high Milestone: 1.0
Component: Widgets Version: 0.3
Keywords: Cc:
Blocked By: Blocking:

Description

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 -->
<div>
    some template code here
</div>

Change History (1)

comment:1 Changed 13 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.