- From: Boris Zbarsky via GitHub <sysbot+gh@w3.org>
- Date: Fri, 21 Sep 2018 15:17:44 +0000
- To: public-device-apis-log@w3.org
bzbarsky has just created a new issue for https://github.com/w3c/deviceorientation:
== Invalid IDL in DeviceMotionEventInit ==
The IDL says:
dictionary DeviceMotionEventInit : EventInit {
DeviceAccelerationInit? acceleration;
DeviceAccelerationInit? accelerationIncludingGravity;
DeviceRotationRateInit? rotationRate;
double interval = 0;
};
but the IDL spec says:
> If the Type is an identifier followed by ?, then the identifier must identify an interface, enumeration, callback function or typedef.
and
> If the type of the dictionary member, after resolving typedefs, is a nullable type, its inner type must not be a dictionary type.
when discussing dictionary members in <https://heycam.github.io/webidl/#idl-dictionaries>. So the above IDL is not valid, and a conformant IDL parser will reject it.
Please view or discuss this issue at https://github.com/w3c/deviceorientation/issues/54 using your GitHub account
Received on Friday, 21 September 2018 15:17:46 UTC