W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2011

Re: [DOM4] Use new WebIDL [EnforceRange] attribute?

From: Cameron McCormack <cam@mozilla.com>
Date: Tue, 11 Oct 2011 16:30:03 +1100
Message-ID: <4E93D45B.50103@mozilla.com>
To: Robin Berjon <robin@berjon.com>
CC: David Flanagan <dflanagan@mozilla.com>, www-dom@w3.org
On 12/09/11 8:12 PM, Robin Berjon wrote:
> I would say that if someone passes -1 to deleteData(), they might not
> mean 2^32-1 but they very likely mean "up to the end". Given the
> rarity of DOM strings 2^32 long, it's not an unreasonable
> conversion.

If that is the case, and we want to explicitly allow -1 to mean the end
of the string, it might be better write that using a signed integer type
and explicitly handling -1 in that way.
Received on Tuesday, 11 October 2011 06:30:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:08 GMT