nevow.json serializes some line terminators such that Athena cannot deserialize them in the browser

Bug #805734 reported by Jean-Paul Calderone
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nevow
Fix Committed
Undecided
Unassigned

Bug Description

JSON encoded bytes may include literal (that is, UTF-8 encoded) U+2028 or U+2029. However, JavaScript string literals may not. See http://timelessrepo.com/json-isnt-a-javascript-subset for any more detail that may be interesting.

Athena's JavaScript parser (browser-side JavaScript eval) cannot parse these literals. If we emit escaped versions of the line terminators, the parser won't need to change.

Related branches

Changed in nevow:
status: New → In Progress
Changed in nevow:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.