Re: in webIDL can a required dictionary member be nullable?

On Thu, Jul 16, 2015 at 4:49 PM, =JeffH <Jeff.Hodges@kingsmountain.com> wrote:
> Hi folks, I have a quick hopefully easy question I just need to
> double-check on..
>
> in webIDL 2nd Ed. [1] can a required dictionary member be nullable?
>
> e.g.  can one do this..
>
>   dictionary foo {
>     required DOMString? bar;
>     required DOMString? baz;
>   };
>
> ..?
>
> From my reading of [1], especially at [2], the answer is "yes" for the
> case of such a dictionary, correct?

Absolutely. null is a value.

~TJ

Received on Thursday, 16 July 2015 23:51:42 UTC