archives

« Bugzilla Issues Index

#3124 — B.1.2 String Literals: replace [lookahead ∉ DecimalDigit] with [lookahead ∉ OctalDigit]


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).


fixed in rev27 editor's draft


fixed in rev27 draft