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

Remove prefix claims for Web Speech API member subfeatures #7554

Merged
merged 1 commit into from
Dec 3, 2020

Conversation

foolip
Copy link
Collaborator

@foolip foolip commented Dec 2, 2020

The members (attributes and methods) of the Web Speech API interfaces
are not themselves prefixes, the usage is

new webkitSpeechRecognition().start()

not the doubly prefixed

new webkitSpeechRecognition().webkitStart()

There are also issues with prefixes on some of the interfaces
themselves, and a lot of repetetive notes, but this commit is only about
the member subfeatures.

The members (attributes and methods) of the Web Speech API interfaces
are not themselves prefixes, the usage is

> new webkitSpeechRecognition().start()

not the doubly prefixed

> new webkitSpeechRecognition().webkitStart()

There are also issues with prefixes on some of the interfaces
themselves, and a lot of repetetive notes, but this commit is only about
the member subfeatures.
@github-actions github-actions bot added the data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Dec 2, 2020
@foolip foolip requested a review from jpmedley December 3, 2020 21:21
@jpmedley jpmedley merged commit 9f7f6c5 into mdn:master Dec 3, 2020
@foolip foolip deleted the speech-prefixes branch December 4, 2020 08:29
foolip added a commit to foolip/browser-compat-data that referenced this pull request Dec 4, 2020
The set of webkitSpeech* members on the global object are:
 - webkitSpeechGrammar
 - webkitSpeechGrammarList
 - webkitSpeechRecognition
 - webkitSpeechRecognitionError
 - webkitSpeechRecognitionEvent

These 3 other SpeechRecognition* interfaces are instead decorated with
[LegacyNoInterfaceObject] in Chromium source, which means their
interfaces objects are not exposed at all. They don't have constructors,
as they are accessed from the `SpeechRecognitionResultList` at
`event.results` for a "result" event.

So while use of prefixes is required to get to these APIs, they are
not themselves prefixed.

See also mdn#7554.
@foolip
Copy link
Collaborator Author

foolip commented Dec 4, 2020

Thanks @jpmedley! I've now sent #7565 to clean up some more here.

jpmedley pushed a commit that referenced this pull request Dec 4, 2020
The set of webkitSpeech* members on the global object are:
 - webkitSpeechGrammar
 - webkitSpeechGrammarList
 - webkitSpeechRecognition
 - webkitSpeechRecognitionError
 - webkitSpeechRecognitionEvent

These 3 other SpeechRecognition* interfaces are instead decorated with
[LegacyNoInterfaceObject] in Chromium source, which means their
interfaces objects are not exposed at all. They don't have constructors,
as they are accessed from the `SpeechRecognitionResultList` at
`event.results` for a "result" event.

So while use of prefixes is required to get to these APIs, they are
not themselves prefixed.

See also #7554.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants