-
Notifications
You must be signed in to change notification settings - Fork 115
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
Add legacy note about addStream. #1451
Conversation
if we do it then write it like this
as a pre class="example highlight"? |
@fippo |
Looks good, but should we also acknowledge the behavior described here, where after calling
I guess this also needs to restore |
@taylor-b AFAIK that behavior was never in the spec, and isn't web compatible, so I don't think it belongs there. Maybe MDN? For me the goal of this note is someone searching the spec for "addStream" finding a vestige of it. |
This is how Chrome has always behaved, and given that Chrome doesn't support
Or some variant thereof. Also, this behavior was in the standard (or at least was heavily implied) at one point:
|
@taylor-b then we should not polyfill automatic addition, or |
@jan-ivar Oh, you mean this code will start failing once Chrome does implement
I'm not an application developer myself, I'm not sure what code people actually write to deal with this. But my point is, it's behavior that's been around for a long time, which we will need to help people migrate off of. If you don't think it should be mentioned in the note here, that's fine; I just wanted to call it out in case people were unaware of it. |
@taylor-b I'm not an application developer eiter, but FWIW it's my understanding that feature-testing (your first example) is considered a good pattern, wheras user-agent testing (the latter) is not. |
@jan-ivar The migration section you added looks good, thanks. |
Potentially for #1125.
Preview | Diff