Ticket #14 (closed bug: fixed)

Opened 9 years ago

Last modified 9 years ago

Invalid generated code when rendering HeadRender with "async" model

Reported by: vrialland Owned by: apoirier
Priority: major Component: uncategorized
Version: 0.1.0 Keywords:
Cc:

Description

Sometimes a "missing ) after argument list
 http://localhost:8080/static/nagare/ajax.js
Line 13" if the response contains special characters.

line 941, 942 of xhtml.py :

css.replace("'", r"\'").replace('\n', ''),
js.replace("'", r"\'").replace('\n', '').encode('utf-8')

working:

css.replace('\\','\\\\').replace("'", r"\'").replace('\n', ''),
js.replace('\\','\\\\').replace("'", r"\'").replace('\n', '').encode('utf-8')

Change History

comment:1 Changed 9 years ago by apoirier

  • Status changed from new to closed
  • Resolution set to fixed

(In [df275dba3f010375c92fc02e0c20e6b2f45e50fb]) AJAX communications refactoring:

  • using YAHOO.Get
  • no more DummyRenderer
  • handling of anonymous scripts and css styles
  • correct transcoding of unicode strings


Fixed #13 and #14

Note: See TracTickets for help on using tickets.