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

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 UTC