ES4 draft: Line terminator normalization

Brendan Eich brendan at mozilla.org
Tue Feb 26 18:12:23 PST 2008


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
>> https://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?

/be





More information about the Es4-discuss mailing list