> ECMAScript, while highly used in web browsers, should really not care about > HTML constructs. That's where WHATWG and W3C come in. I suggest this type of > feature should come from one of those groups, not ECMA.
That applies to escaping things like `</script>` or `]]>`, and I agree. But as Mike Samuel mentioned, JSON strings containing U+2028 or U+2029 are not valid JS expressions. I think it would make sense for `JSON.stringify` to escape these. -Oriol
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

