Actions
Bug #1996
closedJsStringLiteral and Line Separator & Paragraph Separator characters
Start date:
06/25/2013
Due date:
% Done:
0%
Estimated time:
Description
http://redmine.emweb.be/boards/2/topics/6891
Line separator characters in JS are:
\u000A Line Feed <LF>
\u000D Carriage Return <CR>
\u2028 Line separator <LS>
\u2029 Paragraph separator <PS>
Wt escapes and , but not or .
Updated by Koen Deforche over 11 years ago
- Status changed from New to Resolved
- Target version set to 3.3.1
I've fixed this in my git copy.
The proper (but costly) fix would be to escape the character with \u2028 notation when outputting string literals but instead we chose to replace U+2028 and U+2029 with '\n' while validating UTF-8 input. If anyone has a real use case for these characters, wake me up.
Updated by Koen Deforche over 11 years ago
- Status changed from Resolved to Closed
Actions