Re: Speech Synthesis - Length parameter

Just to be clear: a user agent can utilize multiple speech engines
simultaneously, some would support charLength, some would not.

An implementation would need to have charLength be either an integer or
null/undefined in each case.

On Wed, Nov 16, 2016 at 3:22 PM, Eitan Isaacson <eisaacson@mozilla.com>
wrote:

> Just trying to translate that to valid webidl. How can an attribute be a
> primitive or undefined? The only equivalent way I know is if it were
> nullable with a '?' operator.
>
> On Wed, Nov 16, 2016 at 3:19 PM, Glen Shires <gshires@google.com> wrote:
>
>> On Wed, Nov 16, 2016 at 2:42 PM, Eitan Isaacson <eisaacson@mozilla.com>
>> wrote:
>> >
>> >
>> >
>> > On Wed, Nov 16, 2016 at 1:32 PM, Glen Shires <gshires@google.com>
>> wrote:
>> >>
>> >> The user
>> >> agent must return this value if the speech synthesis engine supports
>> >> it or the user agent can otherwise determine it, otherwise the user
>> >> agent must return undefined.
>> >
>> >
>> > How does that actually work? Shouldn't charLength be a nullable type?
>> s/undefined/null/
>> >
>> > And:
>> > readonly attribute unsigned long? charLength;
>>
>>
>> charIndex is also an unsigned long and undefined if the speech
>> synthesis engine doesn't support it.
>>
>> Is there a specific problem with this that you see?
>>
>
>

Received on Wednesday, 16 November 2016 23:42:33 UTC