Closed domenic closed 4 years ago
To be clear to folks new to Web IDL: if a dictionary member is not required
it's implicitly optional, which callers can take advantage of by leaving off the member (or explicitly passing undefined
if that's how they roll). null
for optional is avoided with modern web APIs.
Awesome, thank you for clarifying the best practice here! I updated the explainer: https://github.com/webscreens/window-placement/commit/861edf0c9e6cfb54098612f3719848ba1bfd1050 I will also update Chromium's experimental code.
This should just be
Screen
, notScreen?
. There's no reason to acceptnull
here.