Re: [deviceorientation] Invalid IDL in DeviceMotionEventInit

> We can update the spec but implementations will likely need to keep accepting null values for these members because both [Blink]( and [Gecko]( mark these as optional.

Every member of a dictionary that is not marked as required is already optional. The `?` really doesn't do anything since both "null" and "undefined" get converted to a dictionary the same way anyway. So getting rid of the `?` shouldn't have any behavioral effect (although it's hard to discuss what the behavior is of what is written now, since what is written isn't valid WebIDL to begin with).

GitHub Notification of comment by mkruisselbrink
Please view or discuss this issue at using your GitHub account

Received on Friday, 21 September 2018 21:15:21 UTC