On 6/16/10, Douglas Crockford <doug...@crockford.com> wrote:
> On 11:59 AM, Garrett Smith wrote:
>> Where in the spec is it stated that literal TAB characters in strings
>> are disallowed?
> It clearly states that ASCII control characters are not allowed in
> strings. TAB is an ASCII control character.
>


On 6/16/10, Douglas Crockford <doug...@crockford.com> wrote:
> On 11:59 AM, Garrett Smith wrote:
>> Where in the spec is it stated that literal TAB characters in strings
>> are disallowed?
> It clearly states that ASCII control characters are not allowed in
> strings. TAB is an ASCII control character.
>

The character code for TAB is 9 and so within U+0000 thru U+001F. That
is why it is disallowed. I did not know the character code for TAB was
9.

| JSONStringCharacter ::
| SourceCharacter but not double-quote " or backslash \ or U+0000 thru U+001F
| \ JSONEscapeSequence

If 127 is considered a control character, then it is not included in
that definition.

Garrett
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to