W3C home > Mailing lists > Public > public-device-apis-log@w3.org > September 2018

Re: [deviceorientation] Invalid IDL in DeviceMotionEventInit

From: Boris Zbarsky via GitHub <sysbot+gh@w3.org>
Date: Sat, 22 Sep 2018 18:55:01 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-423765523-1537642500-sysbot+gh@w3.org>
> 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:07 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:55 UTC