Giter Site home page Giter Site logo

Constructors for speech events about speech-api HOT 4 CLOSED

wicg avatar wicg commented on July 28, 2024
Constructors for speech events

from speech-api.

Comments (4)

foolip avatar foolip commented on July 28, 2024 2

When sending #45 I didn't read the issue description to spot that Edge and Firefox already disagree about whether the argument should be required.

In this case, I would like to align with Firefox, because otherwise the utterance attribute has to be nullable, and the only reason for it would be this constructor. That makes it less clear from looking at the IDL whether it can be null for user-agent-created events.

from speech-api.

foolip avatar foolip commented on July 28, 2024 1

Yes, it should have a constructor, also raised by @smaug---- before in https://www.w3.org/Bugs/Public/show_bug.cgi?id=28867.

Change should be trivial, but I'm currently converting the spec to Bikeshed, so best to do it after that.

from speech-api.

minorninth avatar minorninth commented on July 28, 2024

Interop is good, but what's the use case for constructing one of these?

I suppose it's potentially useful for writing unit tests, but I can't think of anything else.

from speech-api.

smaug---- avatar smaug---- commented on July 28, 2024

Testing, and consistency with other events.

from speech-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.