#1557 js: dom::Doc fails to parse empty cookies

dsav Tue 14 Jun 2011

Please, consider the following code:

doc := Win.cur.doc
doc.addCookie(Cookie("cook1", ""))
doc.addCookie(Cookie("cook2", "cook2-value"))
echo(doc.cookies["cook1"])

It prints this: "; cook2=. It seems like the parsing routine doesn't handle empty cookie values.

andy Tue 14 Jun 2011

Promoted to ticket #1557 and assigned to andy

andy Wed 15 Feb 2012

Ticket cancelled

Appears to be working now - tested under Chrome/FF/Safari on OSX.

Login or Signup to reply.