WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 71772
Literal tab in JSONString fails
https://bugs.webkit.org/show_bug.cgi?id=71772
Summary
Literal tab in JSONString fails
Charles Wei
Reported
2011-11-07 23:39:36 PST
currently we fail this test case; function test(){ /** literal tab in JSONString */ /* * Spec: 15.12.1.1 * Spec grammar seems to insist that anything below U+001F is a "control character" * and not allowed to appear literally in JSONString. * As JSON grammar isn't meant to change we're stuck with this even if browsers so far aligned on allowing this.. */ var passed=false; try{ JSON.parse( '{"test": " "}' // Replace the space with Tab, which can't be input here and converts to 4-spaces copy and paste ); }catch(e){ passed = true; } return passed; }
Attachments
Fix
(3.72 KB, patch)
2012-01-05 13:32 PST
,
Gavin Barraclough
oliver
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Gavin Barraclough
Comment 1
2012-01-05 13:32:22 PST
Created
attachment 121322
[details]
Fix
Gavin Barraclough
Comment 2
2012-01-05 13:57:39 PST
Fixed in
r104212
.
Gavin Barraclough
Comment 3
2012-03-07 17:36:59 PST
***
Bug 41102
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug