Re: The SpeechRecognition.maxNBest attribute

On 06/19/2012 01:31 PM, Hans Wennborg wrote:
> Hi all,
>
> The spec draft currently says:
>
>    attribute integer maxNBest;
>
> I don't think "integer" is actually a WebIDL type [1].
Right. It should be long or unsigned long

  I guess
> negative values wouldn't be allowed(?), so how about we make it an
> "unsigned short"?
Why unsigned short? unsigned long should be ok

> Also, do we want specify any special values, e.g.
> "maxNBest = 0 means return all results"?
>
> Thanks,
> Hans
>
> [1] http://www.w3.org/TR/WebIDL/#idl-types
Btw, always use the latest version of the spec
http://dev.w3.org/2006/webapi/WebIDL/

Received on Tuesday, 19 June 2012 10:48:23 UTC