The Wayback Machine - https://web.archive.org/web/20191226073612/https://github.com/mdn/browser-compat-data
Skip to content
This repository contains compatibility data for Web technologies as displayed on MDN
JavaScript
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Make Richard Bloor a BCD peer for WebExtensions data (#5145) Nov 18, 2019
.vscode Remove Edge Mobile (from browsers, schema, etc.) (#4280) Jul 4, 2019
api Fix notes for api.Document.characterSet by adding browser name (#5289) Dec 20, 2019
browsers Samsung Internet 11.0 released (#5318) Dec 17, 2019
css update experimental flag text-justify (#5391) Dec 26, 2019
docs Update publishing docs and release notes script (#5191) Nov 21, 2019
html Print events supported in Safari 13 (#5320) Dec 16, 2019
http Drop Content-Security-Policy: require-sri-for (#5393) Dec 25, 2019
javascript Set Safari versions for JavaScript functions (#5332) Dec 23, 2019
mathml/elements Update mfrac.json with linethickness (#5277) Dec 23, 2019
schemas Fix documentation about usable HTML elements in notes/descriptions (#… Oct 29, 2019
scripts Add linter/fix scripts for Prettier (#5288) Dec 17, 2019
svg Fix Safari plain href attribute support in SVG (#5255) Dec 16, 2019
test Add linter/fix scripts for Prettier (#5288) Dec 17, 2019
webdriver/commands Remove Edge Mobile in webdriver/* (#4277) Jun 13, 2019
webextensions Original topSites.get options added in Firefox 63 (#5323) Dec 17, 2019
xpath/axes Remove Edge Mobile in xpath/* (#4278) Jun 13, 2019
xslt Mirror Chrome Android -> Samsung Internet for xslt/elements/stylesheet ( Oct 27, 2019
.editorconfig Add .editorconfig file and fix files (#188) May 16, 2017
.gitattributes Avoid line ending inconsistencies (#3231) Jan 7, 2019
.gitignore gitignore: ignore log files (#2216) Jul 13, 2018
.npmignore fix(npmignore): Remove the `.github` directory from the npm package (#… Sep 5, 2019
.prettierignore Migration 004: Add Prettier w/ configuration (#5031) Dec 2, 2019
.prettierrc Migration 004: Add Prettier w/ configuration (#5031) Dec 2, 2019
.travis.yml Add npm as a deployment provider to travis Oct 30, 2017
CODE_OF_CONDUCT.md Reorganize project docs into /docs/ folder (#4161) May 16, 2019
GOVERNANCE.md Make Richard Bloor a BCD peer for WebExtensions data (#5145) Nov 18, 2019
LICENSE Add CC0 license (#175) May 6, 2017
README.md Update readme for 1.0.0 (#5186) Nov 21, 2019
index.d.ts feat(infra): Split the TypeScript type declaration (#3004) Mar 7, 2019
index.js Apply Prettier to subfolders + index.js (#5301) Dec 9, 2019
package-lock.json Patch release containing data updates only Dec 19, 2019
package.json Patch release containing data updates only Dec 19, 2019
types.d.ts Apply Prettier (#5250) Dec 3, 2019

README.md

mdn-browser-compat-data

https://github.com/mdn/browser-compat-data

This repository contains compatibility data for Web technologies. Browser compatibility data describes which platforms (where "platforms" are usually, but not always, web browsers) support particular Web APIs.

This data can be used in documentation, to build compatibility tables listing browser support for APIs. For example: Browser support for WebExtension APIs.

npm Build Status Twitter Follow

Read how this project is governed.

Installation

You can install mdn-browser-compat-data as a node package.

npm install mdn-browser-compat-data

Usage

const bcd = require('mdn-browser-compat-data');
bcd.css.properties.background;
// returns a compat data object (see schema)

Repository contents

There's a top-level directory 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.

  • api/ contains data for each Web API interface.

  • css/ contains data for CSS properties, selectors, and at-rules.

  • html/ contains data for HTML elements, attributes, and global attributes.

  • http/ contains data for HTTP headers, statuses, and methods.

  • javascript/ contains data for JavaScript built-in Objects, statement, operators, and other ECMAScript language features.

  • mathml/ contains data for MathML elements, attributes, and global attributes.

  • svg/ contains data for SVG elements, attributes, and global attributes.

  • webdriver/ contains data for WebDriver commands.

  • webextensions/ contains data for WebExtensions JavaScript APIs and manifest keys.

  • xpath/ contains data for XPath axes, and functions.

  • xslt/ contains data for XSLT 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. You can also have a look at the schema documentation.

Issues?

If you find a problem, please file a bug.

Contributing

We're very happy to accept contributions to this data. See Contributing to browser-compat-data for more information.

Projects using the data

Here are some projects using the data, as an npm module or directly:

  • Add-ons Linter - the Add-ons Linter is used on addons.mozilla.org and the web-ext tool. It uses browser-compat-data to check that the Firefox version that the add-on lists support for does in fact support the APIs used by the add-on.
  • Browser Compatibility Data Explorer - View, search, and visualize data from the compatibility dataset.
  • caniuse - In addition to the existing caniuse database, caniuse includes features from the MDN BCD project, formatted and interactive like any other caniuse support table.
  • Compat Report - Firefox Add-on that shows compatibility data for the current site in the developer tools.
  • compat-tester - Scan local documents for compatibility issues.
  • Visual Studio Code - Shows the compatibility information in the code completion popup.
  • webhint.io - Hints to check if your CSS HTML and JavaScript have deprecated or not broadly supported features.
  • WebStorm - JavaScript IDE allowing you to check whether all CSS properties you use are supported in the target browser version.
You can’t perform that action at this time.
HTTPS · web.archive.org
← Home