content icon indicating copy to clipboard operation
content copied to clipboard

navigator.globalPrivacyControl possible values incorrect

Open kiftio opened this issue 3 years ago • 0 comments

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/Navigator/globalPrivacyControl

What specific section or headline is this issue about?

Example, Main Description

What information was incorrect, unhelpful, or incomplete?

In the example, it states that possible navigator.globalPrivacyControl values are "1", "0", "unspecified".

This conflicts with behaviour in the browsers I've tested (Firefox and Brave), and the specification which state the property has a boolean type.

N.B. The example also has a typo, stating "specified" instead of "unspecified", but fixing the above will also fix this.

The specification can also be linked as it's currently missing.

What did you expect to see?

Updated description in how the javascript property relates to the header, but does not have the same value(s).

Updated return value in the example

Link to spec

Do you have any supporting links, references, or citations?

https://globalprivacycontrol.github.io/gpc-spec/#javascript-property-to-detect-preference

Do you have anything more you want to share?

No response

MDN metadata

Page report details
  • Folder: en-us/web/api/navigator/globalprivacycontrol
  • MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/globalPrivacyControl
  • GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/api/navigator/globalprivacycontrol/index.md
  • Last commit: https://github.com/mdn/content/commit/689494e946693c947f23d507fb0b78d7474a46e4
  • Document last modified: 2022-09-13T17:10:53.000Z

kiftio avatar Sep 20 '22 13:09 kiftio