Re: [deviceorientation] Invalid IDL in DeviceMotionEventInit

> Gecko does not mark these members optional.

Dictionary members are optional by default unless marked `required`.  Are you perhaps confusing "optional" and "nullable"?

> Chromium's behavior when the optional flag is removed

Er... Chromium allows the invalid IDL?  Is there a bug reported on that for Chromium?

> is to convert null to {} and all other invalid values to null

Converting explicit `null` to empty dictionary is correct per spec.   Converting other invalid values to anything (other than throwing an exception).... is totally not what the spec says.  Is there a bug reported on that for Chromium?

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

Received on Saturday, 22 September 2018 18:55:03 UTC