Opened 15 years ago
Closed 15 years ago
#1530 closed defect (wontfix)
comment make template interpret wrong
Reported by: | 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 15 years ago by
Milestone: | 0.4 → 0.6 |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
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!