- From: Adam Bergkvist <adam.bergkvist@ericsson.com>
- Date: Tue, 13 Sep 2016 11:26:54 +0000
- To: "public-script-coord@w3.org" <public-script-coord@w3.org>
Hi
The WebIDL spec is a bit slim on how the [EnforceRange] extended
attribute can be used.
Consider the below case. The LongRage dictionary enforces range on it's
max and min members. I want to enforce range on the remaining 'long' in
the Longish typedef. Is it valid to squeeze in the extended attribute in
the typedef?
==========
void acceptLongish(Longish num);
typedef (long or LongRange) Longish;
dictionary LongRange {
[EnforceRange] long max;
[EnforceRange] long min;
};
==========
BR
/Adam
Received on Tuesday, 13 September 2016 11:27:29 UTC