Re: Line Terminators (and others) normalization in template strings

2013-09-26 Thread Waldemar Horwat
On 09/26/2013 11:31 AM, Brendan Eich wrote: Anne van Kesteren September 26, 2013 5:41 AM What Tab meant is that within the platform only CR and CRLF are normalized to LF and no other code points. This is true for HTML as well. This thread is to sort out the LINE and P

Re: Line Terminators (and others) normalization in template strings

2013-09-26 Thread Erik Arvidsson
On Thu, Sep 26, 2013 at 11:42 AM, Anne van Kesteren wrote: > important. In particular, I don't think the idea is for string > templates to hold JavaScript source code, but I've seen HTML and CSS > come by. I'm not sure what you are basing that on? We've gotten a lot of milage out of template lite

Re: Line Terminators (and others) normalization in template strings

2013-09-26 Thread Allen Wirfs-Brock
correction: > normal line terminators then it seems reasonable that the author explicitly > inserted those character (and they probably are showing up as line breaks in > their editor) into a template normal line terminators then it seems reasonable that the author explicitly inserted those

Re: Line Terminators (and others) normalization in template strings

2013-09-26 Thread Mike Samuel
2013/9/26 Allen Wirfs-Brock : > Would any code in the world break if ES stopped treating LINE and PARA as > lexical line terminators? I know, nobody knows... Great question. A simple definition of line terminator would make life harder for those of us who occasionally have to craft injection at

Re: Line Terminators (and others) normalization in template strings

2013-09-26 Thread Allen Wirfs-Brock
Two thoughts below: On Sep 26, 2013, at 11:31 AM, Brendan Eich wrote: >> Anne van Kesteren >> September 26, 2013 5:41 AM >> >> What Tab meant is that within the platform only CR and CRLF are >> normalized to LF and no other code points. This is true for HTML as >> well.

Re: Line Terminators (and others) normalization in template strings

2013-09-26 Thread Erik Arvidsson
I vote for normalizing them too. It is less surprising and more consistent with JS code. If someone really needs them they can always escape them On Thu, Sep 26, 2013 at 11:31 AM, Brendan Eich wrote: >> Anne van Kesteren >> September 26, 2013 5:41 AM >> >> >> What Tab m

Re: Line Terminators (and others) normalization in template strings

2013-09-26 Thread Anne van Kesteren
On Thu, Sep 26, 2013 at 2:31 PM, Brendan Eich wrote: > This thread is to sort out the LINE and PARA seps. No one likes 'em. JSON > missed them. They seem to me only useful for subtle > line-numbering/source-hiding attacks. But ECMA-262 would be inconsistent to > turn a blind eye toward them. > > W

Re: Line Terminators (and others) normalization in template strings

2013-09-26 Thread Brendan Eich
Anne van Kesteren September 26, 2013 5:41 AM What Tab meant is that within the platform only CR and CRLF are normalized to LF and no other code points. This is true for HTML as well. This thread is to sort out the LINE and PARA seps. No one likes 'em. JSON missed them

Re: Line Terminators (and others) normalization in template strings

2013-09-26 Thread Tab Atkins Jr.
On Wed, Sep 25, 2013 at 8:10 PM, Brendan Eich wrote: >> Tab Atkins Jr. >> September 25, 2013 6:31 PM >> Nothing else in the platform normalizes them. > > HTML parsing is not in the platform? As Anne said, the "them" in my quote was referring to the subject of the ema

Re: Line Terminators (and others) normalization in template strings

2013-09-26 Thread Anne van Kesteren
On Wed, Sep 25, 2013 at 11:10 PM, Brendan Eich wrote: > HTML parsing is not in the platform? What Tab meant is that within the platform only CR and CRLF are normalized to LF and no other code points. This is true for HTML as well. -- http://annevankesteren.nl/ _

Re: Line Terminators (and others) normalization in template strings

2013-09-25 Thread Brendan Eich
Tab Atkins Jr. September 25, 2013 6:31 PM Nothing else in the platform normalizes them. HTML parsing is not in the platform? /be Let's not. ~TJ ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.o

Re: Line Terminators (and others) normalization in template strings

2013-09-25 Thread Tab Atkins Jr.
On Wed, Sep 25, 2013 at 4:05 PM, Rick Waldron wrote: > At the last TC39 face-to-face, the committee agreed to normalize CR, LF and > CRLF to LF in template strings[0]. Since then, it's become clear that > LINE_SEPARATOR and PARA_SEPARATOR were overlooked. The question to resolve > is: should these

RE: Line Terminators (and others) normalization in template strings

2013-09-25 Thread François REMY
> At the last TC39 face-to-face, the committee agreed to normalize CR, LF > and CRLF to LF in template strings[0]. Since then, it's become clear > that LINE_SEPARATOR and PARA_SEPARATOR were overlooked. The question to > resolve is: should these also be normalized? What's the use case for n

Line Terminators (and others) normalization in template strings

2013-09-25 Thread Rick Waldron
At the last TC39 face-to-face, the committee agreed to normalize CR, LF and CRLF to LF in template strings[0]. Since then, it's become clear that LINE_SEPARATOR and PARA_SEPARATOR were overlooked. The question to resolve is: should these also be normalized? Rick [0] https://github.com/rwaldron