W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2013

IDL enumeration & String.prototype.normalize

From: Anne van Kesteren <annevk@annevk.nl>
Date: Tue, 6 Aug 2013 15:59:29 +0100
Message-ID: <CADnb78h-AgLs8+y+fP8E+K=oob6V80Ojjgi-MkvgWA+359ktnw@mail.gmail.com>
To: "public-script-coord@w3.org" <public-script-coord@w3.org>, es-discuss <es-discuss@mozilla.org>
In IDL not being part of an enumeration throws TypeError. It seems
String.prototype.normalize uses RangeError. I've no preference as to
which is better, but it would be good if they were equal.

Also, throughout the platform we typically lowercase enumeration
constants, e.g. "arraybuffer". I think it would be good for
String.prototype.normalize to follow that precedent and use "nfc" etc.

(I was a bit surprised to see Unicode normalization exposed here.
We've been pretty hesitant elsewhere to introduce dependencies on it,
but I guess at this level it might be okay.)

Received on Tuesday, 6 August 2013 14:59:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:17 UTC