W3C home > Mailing lists > Public > public-media-capture@w3.org > August 2014

Re: [Bug 26577] New: imageCaptureError attribute shouldn't be nun-null.

From: Alfredo Yang <ayang@mozilla.com>
Date: Thu, 14 Aug 2014 23:33:03 -0700 (PDT)
To: Jan-Ivar Bruaroey <jib@mozilla.com>
Cc: public-media-capture@w3.org
Message-ID: <1283998449.2507368.1408084383454.JavaMail.zimbra@mozilla.com>
> > interface ImageCaptureErrorEvent : Event {
> >      readonly    attribute ImageCaptureError imageCaptureError;
> > };
> >
> > How could imageCaptureError be non-null if imageCaptureErrorInitDict is
> > optional?
> 
> I assume you mean non-nullABLE. Is your point that it needs to be:
> 
>      readonly    attribute ImageCaptureError? imageCaptureError;
> 
> or there's a question what the value is when constructed without
> ImageCaptureErrorEventInit?

Yes.

> 
> We're inconsistent at least.  I had the opposite question [1] a while back on
> MediaStreamEvent where the attribute IS nullable, but I came around when I
> found the alternatives more complicated.
> 
> So +1 on making it nullable.
> 
> .: Jan-Ivar :.
> 
> [1] http://lists.w3.org/Archives/Public/public-webrtc/2014Jul/0015.html
> 
> 
> 
Received on Saturday, 16 August 2014 22:12:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:29 UTC