W3C home > Mailing lists > Public > public-speech-api@w3.org > June 2012

Re: Default value of SpeechRecognition.grammars

From: Dominic Mazzoni <dmazzoni@google.com>
Date: Wed, 20 Jun 2012 07:59:21 -0700
Message-ID: <CAFz-FYyvKm_TTo+0AD2JX7o-gRWsijn05iyJqe8VtfReT3aM0A@mail.gmail.com>
To: Hans Wennborg <hwennborg@google.com>
Cc: public-speech-api@w3.org
Makes sense to me, but why null instead of undefined? I thought it was more
common for default values to be undefined in JavaScript.

On Wed, Jun 20, 2012 at 5:46 AM, Hans Wennborg <hwennborg@google.com> wrote:

> Hi all,
>
> The spec draft currently doesn't say what the default value of
> SpeechRecognition.grammars should be.
>
> I think it should default to null, and that we should add text saying
> that if the grammars attribute is null, that means the speech engine
> should use its default grammar for the language.
>
> Thanks,
> Hans
>
>
Received on Wednesday, 20 June 2012 14:59:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 20 June 2012 14:59:55 GMT