#1176 closed enhancement (fixed)
[patch] Comment tag that doesn't generate a nodelist
| Reported by: | Owned by: | Adrian Holovaty | |
|---|---|---|---|
| Component: | Core (Other) | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The existing comment tag actually builds a nodelist from its contents. This means that you can't comment out broken template tags during debugging because they still generate exceptions.
This patch adds a skip_past(endtagname) method to the parser so that the comment tag can ignore its contents.
Attachments (1)
Change History (2)
by , 20 years ago
| Attachment: | comment_without_parse_r1831.diff added |
|---|
comment:1 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Comment tag without building nodelist