ES4 draft: Line terminator normalization

# Lars Hansen (17 years ago)

Please comment.

# Geoffrey Garen (17 years ago)

Looks good to me.

Geoff

# Maciej Stachowiak (17 years ago)

On Feb 26, 2008, at 1:36 AM, Lars Hansen wrote:

Please comment. --lars

<line-terminator- normalization.txt>_______________________________________________ Es4-discuss mailing list Es4-discuss at mozilla.org, mail.mozilla.org/listinfo/es4-discuss

Has the web compatibility impact of this proposal been evaluated?

, Maciej

# Brendan Eich (17 years ago)

On Feb 26, 2008, at 3:46 PM, Maciej Stachowiak wrote:

On Feb 26, 2008, at 1:36 AM, Lars Hansen wrote:

Please comment. --lars

<line-terminator- normalization.txt>_______________________________________________ Es4-discuss mailing list Es4-discuss at mozilla.org, mail.mozilla.org/listinfo/es4-discuss

Has the web compatibility impact of this proposal been evaluated?

SpiderMonkey has converted \r and \r\n into \n since 1996 -- my
memory is dim, but IIRC I did that in the original Netscape 2 "Mocha"
runtime, because anything else hurt interop (back then people
routinely authored HTML docs with inline scripts on Mac using \r for
line termination, never mind Windows using \r\n ;-)). Does
JavaScriptCore not canonicalize to \n?

# Maciej Stachowiak (17 years ago)

On Feb 26, 2008, at 6:12 PM, Brendan Eich wrote:

On Feb 26, 2008, at 3:46 PM, Maciej Stachowiak wrote:

On Feb 26, 2008, at 1:36 AM, Lars Hansen wrote:

Please comment. --lars

<line-terminator- normalization.txt>_______________________________________________ Es4-discuss mailing list Es4-discuss at mozilla.org, mail.mozilla.org/listinfo/es4-discuss

Has the web compatibility impact of this proposal been evaluated?

SpiderMonkey has converted \r and \r\n into \n since 1996 -- my
memory is dim, but IIRC I did that in the original Netscape 2
"Mocha" runtime, because anything else hurt interop (back then
people routinely authored HTML docs with inline scripts on Mac using
\r for line termination, never mind Windows using \r\n ;-)). Does
JavaScriptCore not canonicalize to \n?

That sounds like sufficient evaluation of the impact to me. I thought
it might be possible that scripts would expect \r\n to appear as two
characters but what you describe makes that seem pretty unlikely.

# Lars Hansen (17 years ago)

Following discussion at yesterday's phone conference, a detailed design point of this proposal is being debated in a Trac ticket: bugs.ecmascript.org/ticket/362.

# Lars Hansen (17 years ago)

The draft has been updated based on ticket resolutions: spec:line_terminator_normalizatio n

# Igor Bukanov (17 years ago)

On 06/03/2008, Lars Hansen <lhansen at adobe.com> wrote:

The draft has been updated based on ticket resolutions: spec:line_terminator_normalizatio

The URL has missed the final "n", the right one is:

spec:line_terminator_normalization

, Igor

# Waldemar Horwat (17 years ago)

Looks good.

Waldemar