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

Re: [deviceorientation] Invalid IDL in DeviceMotionEventInit

From: Reilly Grant via GitHub <sysbot+gh@w3.org>
Date: Sat, 22 Sep 2018 20:46:07 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-423772200-1537649166-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"?

Yes, I mean "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?

Yes, Chromium allows the invalid IDL. For reference for the current behavior I recommend looking at [device_orientation/motion/optional-event-properties.html](https://chromium.googlesource.com/chromium/src/+/e2e7cd911060f081cec552e230701a2366b12d0d/third_party/WebKit/LayoutTests/device_orientation/motion/optional-event-properties.html).

There are no bugs that I can find currently filed for this mismatch with the WebIDL specification but I might be missing context here because I am not on the team responsible for the WebIDL bindings generator.

-- 
GitHub Notification of comment by reillyeon
Please view or discuss this issue at https://github.com/w3c/deviceorientation/issues/54#issuecomment-423772200 using your GitHub account
Received on Saturday, 22 September 2018 20:46:08 UTC

This archive was generated by hypermail 2.3.1 : Saturday, 22 September 2018 20:46:09 UTC