-
Notifications
You must be signed in to change notification settings - Fork 22.4k
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
Callback syntax for RTCPeerConnection: setRemoteDescription isn’t listed in the deprecated-JavaScript features index #2086
Comments
Another example; https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Interact_with_the_clipboard recommends usage of a deprecated API without saying so; https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand |
Not quite. I asked Chris the same a while ago: #1807 (comment) |
@chrisdavidmills I agree with the sentiment here. It is much more scalable and reliable to dynamically generate these kinds of lists from "tagged" content than to try to manually keep them up to date. In this case the "tag" might be use of the If you agree we should open a discussion on yari for this. Note: This is basically the same approach I am proposing we use (eventually) for the events reference, and why I suggested that being able to created lists from tags is a good idea. @Dmole In the meantime, would you be able to add the missing features to the list? |
I've opened mdn/yari#2903 as issue and will fill a discussion (looks like Referencing feature of GitHub does not support this right now). |
Going back to the original issue the depreciated feature is a Web API feature, whereas the Depreciated and obsolete features lists javascript language features. I'm unaware of any depreciated list for web apis (which honestly I think would be cumbersome). I'm inclined to close this issue as the depreciated method is listed where it should be and there are other discussions around how such things are handled. |
Since there's a |
@hamishwillee as far as I see there is no official source of deprecated JavaScript usage (as so much is outside the IETF and ECMA). @Rumyra The point is to make documenting depreciated usage of the Web APIs less cumbersome, to help avoid future security issues etc. Depreciated Web APIs methods are not consistently listed (as shown in the links above). @jpmedley The reason for this issue is I tried scripting a list of deprecated JavaScript Web API only to find the data (regardless of how scattered it was) was lacking/inconsistent. |
So @Rumyra is correct in that we would not expect Web API deprecations to be in the Javascript obsolesce list. If the Javascript list is incorrect, which it may be, that would be a different bug than this one (and hence a reason to close this one). IMO @jpmedley is correct too. If there is a deprecated tag in the browser compatibility system then that is the right and "standard" place for this information to be recorded. After all, deprecation is on the lifecycle of something being removed, which is the whole point of the BCD. It should be possible to generate the list of deprecated Web APIs need from the BCD (whether it is useful to do so is a separate question, on which I have no opinion). If you can't, as you indicate, or if there are inconsistencies between what it says on MDN and the BCD then those are content bugs that we should fix. However again, they would be a separate bug to this. Does that make sense? If so,
|
This would be tremendously useful. As part of trying to fill a backlog of features Chrome contributed to the platform I run a periodic report of what's missing. This would help me keep an accurate list of what has lower priority or doesn't need to be documented at all. |
As per @hamishwillee's comment I have made a new issue that is more clear. |
@jpmedley Obviously it is easy to generate a list from BCD "privately" - here's a quick one that I generated using Python: https://gist.github.com/hamishwillee/2c2b26f478a15c7e588289ff3b128283 (this only shows the first level where it encounters a deprecated status - it assumes everything nested below is also deprecated) Would the "right way" to generate this list be a node script run from yari in CI on a regular basis? If so, then we should request this of the dev team. What formatting/cross-linking would you find useful on such a page, if any? EDITED: Attached XLS is the merged list showing what is on BCD (left column), What is on MDN (right column) (based on the |
Currently the list
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Deprecated_and_obsolete_features
is incomplete, eg it's missing
https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setRemoteDescription#deprecated_syntax
.
If there were a Standardized Deprecated format like better use of the {{deprecated_inline}}
the Deprecated_and_obsolete_features list could be auto updated, and added to eslint.
The text was updated successfully, but these errors were encountered: