Re: Default value of SpeechRecognition.grammars

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 UTC