[whatwg/webidl] Mandate a default value for boolean dictionary members? (Issue #1485)

saschanaz created an issue (whatwg/webidl#1485)

### What is the issue with the Web IDL Standard?

It's very easy to just write `boolean foo;` in dictionaries even when it's not really expected to be tristate.

There are certainly intentional tristate booleans like `passive` of `EventListenerOptions`, but maybe we should guide the new specs to use enums for such multistate instead or use nullable booleans (`boolean? foo = null`)?

(I don't have a definite list of accidental tristate booleans in specs, for now this is just what I observed when dealing with Gecko IDL.)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1485
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/issues/1485@github.com>

Received on Thursday, 24 April 2025 12:40:07 UTC