Edgewall Software

Changes between Initial Version and Version 1 of Ticket #9569


Ignore:
Timestamp:
Aug 15, 2010, 8:57:27 AM (14 years ago)
Author:
Remy Blank
Comment:

That's because your code is invalid (when included in an HTML file). You have to either escape the & characters by substituting with & or enclose the code in a CDATA section.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9569

    • Property Status newclosed
    • Property Resolutioninvalid
  • Ticket #9569 – Description

    initial v1  
    11Problem is always there. It should be easy to reproduce. In <project>/templates/ticket.html the following code:
    2 
     2{{{
    33<script language="Javascript" type="text/javascript">
    44       function check_ticket(thisform)
     
    1919        }
    2020</script>
    21 
     21}}}
    2222will throw internal error on token '&&':
    23 
     23{{{
    2424Trac detected an internal error:
    2525TemplateSyntaxError: not well-formed (invalid token): line 49, column 62 (/var/trac/projects/ianwap/templates/ticket.html, line 49)
     
    3434File "/usr/lib/python2.3/site-packages/Genshi-0.5.1-py2.3-linux-i686.egg/genshi/template/loader.py", line 265, in _instantiate
    3535File "/usr/lib/python2.3/site-packages/Genshi-0.5.1-py2.3-linux-i686.egg/genshi/template/base.py", line 379, in __init__
    36 
     36}}}
     37{{{
    3738Trac:   0.11.6
    3839Python: 2.3.4 (#1, Feb 15 2005, 19:42:48) [GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)]
     
    4344mod_python:     < 3.2
    4445jQuery: 1.2.6
     46}}}