Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use FrozenArray<SpeechRecognitionResult> and remove SpeechRecognitionResultList #12

Closed
saschanaz opened this issue Jun 12, 2018 · 3 comments

Comments

@saschanaz
Copy link
Contributor

Related 2013 discussion: https://lists.w3.org/Archives/Public/public-speech-api/2013Feb/0011.html

There was a previous attempt to remove SpeechRecognitionResultList but was reverted because Web IDL forbids attributes to return sequences.

The type of the attribute, after resolving typedefs, must not be a nullable or non-nullable version of any of the following types:

  • a sequence type
  • a dictionary type
  • a record type
  • a union type that has a nullable or non-nullable sequence type, dictionary, or record as one of its flattened member types

Attributes still can use FrozenArray which is also represented by JS native array object.

@foolip
Copy link
Member

foolip commented Jun 13, 2018

The compat risk here is the item method, which a plain Array doesn't have. Content in the wild might be using it, but if multiple implementers would like to simplify this, then we could add a use counter in Chrome and see if there's much usage.

@foolip
Copy link
Member

foolip commented Jun 13, 2018

@foolip
Copy link
Member

foolip commented Apr 28, 2021

Since SpeechRecognitionResultList has now shipped in Safari 14.1, I think we should not change this, it's just not worth it.

@foolip foolip closed this as completed Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants