Re: [deviceorientation] DeviceMotionEvent atttributes can't be null per current IDL (#91)

Generally, not passing an init dictionary should be same as passing `{}`, as you can see in `optional DeviceMotionEventInit eventInitDict  = {}`. I would expect the rule to be recursively applied here and thus `new DeviceMotion("type")` should behave same as `new DeviceMotion("type", {})` and `new DeviceMotion("type", { accelaration: {}, accelerationIncludingGravity: {}, rotationRate: {} })`, given that each member is also an init dictionary.

-- 
GitHub Notification of comment by saschanaz
Please view or discuss this issue at https://github.com/w3c/deviceorientation/issues/91#issuecomment-1788057442 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 31 October 2023 21:24:00 UTC