Skip Menu |

This queue is for tickets about the HTML-Template CPAN distribution.

Report information
The Basics
Id: 38620
Status: rejected
Priority: 0/
Queue: HTML-Template

People
Owner: Nobody in particular
Requestors: ohiocore [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.9
Fixed in: (no value)



Subject: Position of ESCAPE changes behavior
The two otherwise identical TMPL elements: <!-- TMPL_VAR NAME="rowtitle_display" DEFAULT="UNKNOWN VALUE" ESCAPE="HTML" --> and <!-- TMPL_VAR ESCAPE="HTML" NAME="rowtitle_display" DEFAULT="UNKNOWN VALUE" --> will produce differing output based on the position of the ESCAPE attribute. For example: 2007-12-06ESCAPE="HTML" --> or: 2007-12-06 respectively. Obviously the latter is correct. This appears to be and interaction with the parsing of the DEFAULT attribute. If DEFAULT is removed both statements behave identically.
I've tried to trigger this error in lots of different ways and I can't seem to do it. I've even added more tests to the distribution to see if I could trigger it: https://github.com/mpeters/html-template/blob/master/t/04-escape.t (look at the last group of tests) Am I missing something? If you can provide an actual template file that fails (if it can fit into the t/04-escape.t test that would be even better) then I'll reopen this bug and fix it.