Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Un-deprecate navigator.platform (was: Replace Deprecated_Header in na…
…vigator.platform doc and adjust navigator.userAgentData.platform note wording) (#14452) * Adjust wording of note about navigator.userAgentData.platform - Don’t say that navigator.userAgentData.platform is “recommended”; it’s sufficient to just point out that it exists as an alternative. - Since it’s so far only in Blink, say “not yet supported by **most** browsers” rather than “not yet supported by some major browsers. See #14429 * Replace Deprecated_Header in navigator.platform doc For the navigator.platform article, this change replaces the Deprecated_Header macro and its boilerplate text with some more-appropriate alternative pseudo-boilerplate text. See #14429 * Update files/en-us/web/api/navigator/platform/index.md Co-authored-by: wbamberg <[email protected]> * Drop “yet” in text about navigator.userAgentData.platform not being supported/adopted * Un-deprecate navigator.platform; improve advice and example Fixes #14429. For the navigator.platform article, this change does the following: - Drop the Deprecated_Header macro. - Add admonishments that navigator.platform should be avoided in favor of feature detection. - Relegate mention of (equally-bad) navigator.userAgentData.platform to just being a "See also". - Add an example of the single known good case where using navigator.platform isn’t completely bad. Related BCD change: mdn/browser-compat-data#15599 Related spec change: whatwg/html#7762 * Refine explanation of matching on navigator.platform value * Fix markdown formatting of example navigator.platform values * Grammar fix * Update files/en-us/web/api/navigator/platform/index.md Co-authored-by: Jean-Yves Perrier <[email protected]> Co-authored-by: wbamberg <[email protected]> Co-authored-by: Jean-Yves Perrier <[email protected]>
- Loading branch information