« Bugzilla Issues Index
#3124 — B.1.2 String Literals: replace [lookahead ∉ DecimalDigit] with [lookahead ∉ OctalDigit]
- bug_id:
3124
- creation_ts:
2014-08-12 13:45:00 -0700
- short_desc:
B.1.2 String Literals: replace [lookahead ∉ DecimalDigit] with [lookahead ∉ OctalDigit]
- delta_ts:
2014-08-25 08:29:31 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 26: July 18, 2014 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
enhancement
- blocked:
1553
- everconfirmed:
true
- reporter:
Claude Pache
- assigned_to:
Allen Wirfs-Brock
- commentid:
9771
- comment_count:
0
- who:
Claude Pache
- bug_when:
2014-08-12 13:45:16 -0700
Section B.1.2 String Literals
In the RHS of the OctalEscapeSequence production, [lookahead ∉ DecimalDigit] should be replace by [lookahead ∉ OctalDigit] (twice) in order to match reality.
E.g., all major browsers interpret "\078" as "\07" + "8" in sloppy mode (and throw in strict mode).
Note that this case resemble, but is different from, Bug #1553. The only point of contact is that "\0" can either be interpreted as an octal escape sequence in sloppy mode (according to Annex B), or as an ad-hoc escape sequence producing NUL otherwise (per Section 11.8.4).
- commentid:
9848
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2014-08-23 12:51:21 -0700
fixed in rev27 editor's draft
- commentid:
9971
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2014-08-25 08:29:31 -0700
fixed in rev27 draft