The Wayback Machine - https://web.archive.org/web/20200319083205/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

Latest commit

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Bump acorn from 5.7.3 to 5.7.4 in /.github/compat-data-helper (#5837) Mar 17, 2020
.vscode Remove Edge Mobile (from browsers, schema, etc.) (#4280) Jul 4, 2019
api Update KeyframeEffectOptions (ie Element.animate subfeatures) (#5815) Mar 17, 2020
browsers Firefox 74 has been released (#5832) Mar 16, 2020
css [Chrome] Bug 979041: Implement `@supports selector(…)` (#5783) Mar 15, 2020
docs Add chat link (#5556) Feb 20, 2020
html HTML summary element: fix typo in notes (#5801) Mar 16, 2020
http Opera for Android doesn't support x-xss-protection header (#5809) Mar 12, 2020
javascript Firefox 75 supports static class fields (#5823) Mar 18, 2020
mathml/elements MathML mfenced is gone (#5458) Jan 10, 2020
schemas The 'status' property is not optional (#5816) Mar 17, 2020
scripts Enforce Markdown Prettier formatting in linter (#5547) Jan 23, 2020
svg svg/discard will be removed in chrome 81 (#5779) Mar 6, 2020
test Fix "[Array]" printing in consistency logger when data is "null" (#5833) Mar 17, 2020
webdriver/commands Mirror Chrome -> Edge for webdriver/ (#5563) Feb 18, 2020
webextensions 1483590-fileName-property-added-to-the-pageSettings-in-tabs.saveAsPDF… Mar 17, 2020
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 Bump supported Node.js version to v10 (#5806) Mar 17, 2020
CODE_OF_CONDUCT.md Reorganize project docs into /docs/ folder (#4161) May 16, 2019
GOVERNANCE.md Remove teoli from peer list (#5675) Feb 7, 2020
LICENSE Add CC0 license (#175) May 6, 2017
README.md Add chat link (#5556) Feb 20, 2020
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 or non-breaking updates only Mar 12, 2020
package.json Bump supported Node.js version to v10 (#5806) Mar 17, 2020
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.

Chat on chat.mozilla.org#mdn.

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.