The code in js_output in the Morsel class in Cookie.py
produces invalid code, the scripting language should be
specified by mimetype and not by language as per
http://www.w3.org/TR/html401/interact/scripts.html
also, the javascript line is missing an ending semi-colon
attached a "patch" (new version of the function in
question)
present at least in 2.3 but still broken in current cvs
A related matter: the existing documentation is poor,
only after a substantial amount of code reading and
googling I found out how to set attributes such as
expires and path.
|