Re: [css-houdini-drafts] [css-typed-om] Why is StylePropertyMap.get defined to return `undefined` instead of `null`? (#848)

The JS `Map` object returns undefined from those operations. The spec intentionally matches that behavior.  I consider DOM's usage of `null` for similar flagging purposes a legacy mistake; it's a result of Java only having `null`, and so WebIDL (in its early "let's pretend we're writing APIs for both JS and Java" form) naturally defaulted to making `null` easy to use.

See <https://github.com/heycam/webidl/issues/60> for further discussion of the more general issue.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/848#issuecomment-448038224 using your GitHub account

Received on Monday, 17 December 2018 23:27:59 UTC