Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending asJavascript to strings with LineTerminator characters U+2028 and U+2029 does not properly encode those characters #725

Closed
GoogleCodeExporter opened this issue Mar 25, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

(String with: (Character codePoint: 16r2028)) asJavascript should return 
'"\u2028"', likewise for U+2029. These characters are defined as LineTerminator 
characters, which according to the ECMA-262 standard cannot appear unescaped in 
a string literal.

See also the discussion at http://timelessrepo.com/json-isnt-a-javascript-subset

Fix in attachment.

Original issue reported on code.google.com by [email protected] on 2 May 2012 at 2:15

Attachments:

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 2 May 2012 at 3:24

  • Added labels: Javascript
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 2 May 2012 at 6:09

  • Changed state: Started
  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Thanks, merged

Original comment by [email protected] on 2 May 2012 at 6:23

  • Changed state: Fixed
  • Added labels: Version-Seaside3.0
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant