Skip to content

Commit

Permalink
Misc grammar, spelling, and wording fixes for the schema descriptions (
Browse files Browse the repository at this point in the history
  • Loading branch information
connorshea authored and Elchi3 committed May 17, 2018
1 parent fed802e commit 2efb080
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 51 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,23 @@ JSON file containing the compatibility data.

- [api/](https://github.com/mdn/browser-compat-data/tree/master/api) contains data for each [Web API](https://developer.mozilla.org/en-US/docs/Web/API) interface.

- [css/](https://github.com/mdn/browser-compat-data/tree/master/css) contains data for [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS) properties, selectors and at-rules.
- [css/](https://github.com/mdn/browser-compat-data/tree/master/css) contains data for [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS) properties, selectors, and at-rules.

- [html/](https://github.com/mdn/browser-compat-data/tree/master/html) contains data for
[HTML](https://developer.mozilla.org/en-US/docs/Web/HTML) elements, attributes and global attributes.
[HTML](https://developer.mozilla.org/en-US/docs/Web/HTML) elements, attributes, and global attributes.

- [http/](https://github.com/mdn/browser-compat-data/tree/master/http) contains data for [HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP) headers, statuses and methods.
- [http/](https://github.com/mdn/browser-compat-data/tree/master/http) contains data for [HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP) headers, statuses, and methods.

- [javascript/](https://github.com/mdn/browser-compat-data/tree/master/javascript) contains data for [JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript) built-in Objects, statement, operators and or other ECMAScript language features.
- [javascript/](https://github.com/mdn/browser-compat-data/tree/master/javascript) contains data for [JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript) built-in Objects, statement, operators, and other ECMAScript language features.

- [mathml/](https://github.com/mdn/browser-compat-data/tree/master/mathml) contains data for [MathML](https://developer.mozilla.org/docs/Web/MathML) elements, attributes and global attributes.
- [mathml/](https://github.com/mdn/browser-compat-data/tree/master/mathml) contains data for [MathML](https://developer.mozilla.org/docs/Web/MathML) elements, attributes, and global attributes.

- [svg/](https://github.com/mdn/browser-compat-data/tree/master/svg) contains data for [SVG](https://developer.mozilla.org/en-US/docs/Web/SVG) elements, attributes, and global attributes.

- [webdriver/](https://github.com/mdn/browser-compat-data/tree/master/webdriver) contains data for [WebDriver](https://developer.mozilla.org/en-US/docs/Web/WebDriver) commands.

- [webextensions/](https://github.com/mdn/browser-compat-data/tree/master/webextensions) contains data for [WebExtensions](https://developer.mozilla.org/en-US/Add-ons/WebExtensions) JavaScript APIs and manifest keys.

- [svg/](https://github.com/mdn/browser-compat-data/tree/master/svg) contains data for [SVG](https://developer.mozilla.org/en-US/docs/Web/SVG) elements, attributes and global attributes.

## Format of the browser compat json files
The definitive description of the format used to represent compatibility data is the [schema file](https://github.com/mdn/browser-compat-data/blob/master/schemas/compat-data.schema.json).
You can also have a look at the [schema documentation](https://github.com/mdn/browser-compat-data/blob/master/schemas/compat-data-schema.md).
Expand Down
5 changes: 3 additions & 2 deletions schemas/browsers-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ The file `firefox.json` is structured like this:
"release_date": "2005-11-29",
"release_notes": "https://developer.mozilla.org/Firefox/Releases/1.5",
"status": "retired"
},
}
}
}
}
}
```

It contains an object with the property `browsers` which then contains an object with the browser identifier as the property name (`firefox`).

Underneath, there is a `releases` object which will hold the various releases of a given browser by their release version number (`"1.5"`).
Expand All @@ -40,7 +41,7 @@ The `name` string is an optional property which should use the browser brand nam
The release objects consist of the following properties:

* A mandatory `status` property indicating where in the lifetime cycle this release is in. It's an enum accepting these values:
* `retired`: This release is no longer supported (EOL)
* `retired`: This release is no longer supported (EOL).
* `current`: This release is the official latest release.
* `limited`: This is a limited release (for example on a flagship device), not generally available.
* `beta`: This release will the next official release.
Expand Down
83 changes: 41 additions & 42 deletions schemas/compat-data-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,32 @@ This document helps you to understand how mdn-browser-compat-data is organized a
## Where to find compat data
### The folder structure

Compatibility data is organized in top-level directories for each broad area covered: for example, "http",
"javascript", "webextensions". Inside each of these directories is one or more
JSON file containing the compatibility data.
Compatibility data is organized in top-level directories for each broad area covered: for example, `http`,
`javascript`, and `webextensions`. Inside each of these directories is one or more
JSON files containing the compatibility data.

- [api/](https://github.com/mdn/browser-compat-data/tree/master/api) contains data for each [Web API](https://developer.mozilla.org/en-US/docs/Web/API) interface.

- [css/](https://github.com/mdn/browser-compat-data/tree/master/css) contains data for [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS) properties, selectors and at-rules.
- [css/](https://github.com/mdn/browser-compat-data/tree/master/css) contains data for [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS) properties, selectors, and at-rules.

- [html/](https://github.com/mdn/browser-compat-data/tree/master/html) contains data for [HTML](https://developer.mozilla.org/en-US/docs/Web/HTML) elements, attributes and global attributes.
- [html/](https://github.com/mdn/browser-compat-data/tree/master/html) contains data for [HTML](https://developer.mozilla.org/en-US/docs/Web/HTML) elements, attributes, and global attributes.

- [http/](https://github.com/mdn/browser-compat-data/tree/master/http) contains data for [HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP) headers, statuses and methods.
- [http/](https://github.com/mdn/browser-compat-data/tree/master/http) contains data for [HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP) headers, statuses, and methods.

- [javascript/](https://github.com/mdn/browser-compat-data/tree/master/javascript) contains data for [JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript) built-in Objects, statement, operators and or other ECMAScript language features.
- [javascript/](https://github.com/mdn/browser-compat-data/tree/master/javascript) contains data for [JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript) built-in Objects, statement, operators, and other ECMAScript language features.

- [mathml/](https://github.com/mdn/browser-compat-data/tree/master/mathml) contains data for [MathML](https://developer.mozilla.org/docs/Web/MathML) elements, attributes and global attributes.
- [mathml/](https://github.com/mdn/browser-compat-data/tree/master/mathml) contains data for [MathML](https://developer.mozilla.org/docs/Web/MathML) elements, attributes, and global attributes.

- [svg/](https://github.com/mdn/browser-compat-data/tree/master/svg) contains data for [SVG](https://developer.mozilla.org/en-US/docs/Web/SVG) elements, attributes, and global attributes.

- [webdriver/](https://github.com/mdn/browser-compat-data/tree/master/webdriver) contains data for [WebDriver](https://developer.mozilla.org/en-US/docs/Web/WebDriver) commands.

- [webextensions/](https://github.com/mdn/browser-compat-data/tree/master/webextensions) contains data for [WebExtensions](https://developer.mozilla.org/en-US/Add-ons/WebExtensions) JavaScript APIs and manifest keys.

- [svg/](https://github.com/mdn/browser-compat-data/tree/master/svg) contains data for [SVG](https://developer.mozilla.org/en-US/docs/Web/SVG) elements, attributes and global attributes.

### File and folder breakdown
The JSON files contain [feature identifiers](#feature-identifiers),
which are relevant for accessing the data. Except for the top-level directories,
the file and sub folder hierarchies aren't of any meaning for the exports.
the file and sub-folder hierarchies aren't of any meaning for the exports.
Compatibility data can be stored in a single large file or might be divided in
smaller files and put into sub folders.

Expand All @@ -54,7 +54,7 @@ In the JSON file it looks like this:
"end": {
"__compat": {}
}
},
}
}
}
}
Expand Down Expand Up @@ -89,35 +89,35 @@ The `<code>` and `<a>` HTML elements can be used.

* An optional `status` property for __status information__.
An object containing information about the stability of the feature:
Is it a functionality that is standard? Is it stable? Has it been deprecated and shouldn't be used anymore ([see below](#status-information)).
Is it a functionality that is standard? Is it stable? Has it been deprecated and shouldn't be used anymore? ([see below](#status-information))

* An optional `mdn_url` property which __points to an MDN reference page documenting the feature__.
It needs to be a valid URL.
It needs to be a valid URL, and should be the language-neutral URL (e.g. use `https://developer.mozilla.org/docs/Web/CSS/text-align` instead of `https://developer.mozilla.org/en-US/docs/Web/CSS/text-align`).

### The `support` object
Each `__compat` object contains support information. For each browser identifier, it contains a [`support_statement`](#the-support_statement-object) object with
information about versions, prefixes or alternate names, as well as notes.
information about versions, prefixes, or alternate names, as well as notes.

#### Browser identifiers

The currently accepted browser identifiers should be declared in the following order:
* `webview_android`, Webview, the former stock browser on Android,
* `chrome`, Google Chrome (on desktops),
* `chrome_android`, Google Chrome (on Android),
* `edge`, MS Edge (on Windows),
* `edge_mobile`, MS Edge, the mobile version,
* `firefox`, Mozilla Firefox (on desktops),
* `firefox_android`, Firefox for Android, sometimes nicknamed Fennec,
* `ie`, Microsoft Internet Explorer (discontinued),
* `nodejs` Node.js JavaScript runtime built on Chrome's V8 JavaScript engine,
* `opera`, the Opera browser (desktop), based on Blink since Opera 15,
* `opera_android`, the Opera browser (Android version),
* `qq_android`, the QQ browser (Android version),
* `safari`, Apple Safari, on Mac OS,
* `safari_ios`, Apple Safari, on iOS,
* `samsunginternet_android`, the Samsung Internet browser (Android version).
* `uc_android`, UC Browser (Android version).
* `uc_chinese_android`, UC Browser (Chinese Android version).
The currently accepted browser identifiers should be declared in alphabetical order:
* `chrome`, Google Chrome (on desktops)
* `chrome_android`, Google Chrome (on Android)
* `edge`, MS Edge (on Windows)
* `edge_mobile`, MS Edge, the mobile version
* `firefox`, Mozilla Firefox (on desktops)
* `firefox_android`, Firefox for Android, sometimes nicknamed Fennec
* `ie`, Microsoft Internet Explorer (discontinued)
* `nodejs` Node.js JavaScript runtime built on Chrome's V8 JavaScript engine
* `opera`, the Opera browser (desktop), based on Blink since Opera 15
* `opera_android`, the Opera browser (Android version)
* `qq_android`, the QQ browser (Android version)
* `safari`, Safari on macOS
* `safari_ios`, Safari on iOS
* `samsunginternet_android`, the Samsung Internet browser (Android version)
* `uc_android`, UC Browser (Android version)
* `uc_chinese_android`, UC Browser (Chinese Android version)
* `webview_android`, Webview, the former stock browser on Android

No browser identifier is mandatory.

Expand All @@ -126,7 +126,6 @@ The `support_statement` object describes the support provided by a single browse
It is an array of `simple_support_statement` objects, but if there
is only one of them, the array must be omitted.


Example of a `support` compat object (with an `array_support_statement` containing 2 entries):
```json
"support": {
Expand Down Expand Up @@ -183,12 +182,12 @@ entirely unknown. Examples:
* Support unknown (default value, if browser omitted):
```json
{
"version_added" : null
"version_added": null
}
```

#### `version_removed`
Contains a string with the version number the sub-feature is
Contains a string with the version number the sub-feature was
removed in. It may also be a Boolean value of (`true` or `false`), or the
`null` value.

Expand Down Expand Up @@ -278,14 +277,14 @@ Example for two flags required:
"type": "preference",
"name": "javascript.options.streams",
"value_to_set": "true"
},
}
]
}
```

#### `partial_implementation`
A `boolean` value indicating whether or not the implementation of the sub-feature
follows the current specification close enough to not create major interoperability problems.
follows the current specification closely enough to not create major interoperability problems.
It defaults to `false` (no interoperability problem expected).
If set to `true`, it is recommended to add a note indicating how it diverges from
the standard (implements an old version of the standard, for example).
Expand All @@ -308,8 +307,8 @@ the array can be a just a string. Example:
The `<code>` and `<a>` HTML elements can be used.

### Status information
The status property informs about stability of the feature. It is an optional object named
`status` and has three mandatory properties:
The status property contains information about stability of the feature. It is
an optional object named `status` and has three mandatory properties:
* `experimental`: a `boolean` value that indicates this functionality is
intended to be an addition to the Web platform. Some features are added to
conduct tests. Set to `false`, it means the functionality is mature, and no
Expand All @@ -330,6 +329,6 @@ It might be removed in the future or might only be kept for compatibility purpos
```

### Localization
We are planning localize some of this data (e.g. notes, descriptions).
At this point we haven't decided how and when we are going to do that.
We are planning to localize some of this data (e.g. notes, descriptions).
At this point we haven't decided how or when we are going to do that.
See [issue 114](https://github.com/mdn/browser-compat-data/issues/114) for more information.

0 comments on commit 2efb080

Please sign in to comment.