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 Revert "Switch to GitHub Actions labeler (#5493)" (#5496) Jan 14, 2020
.vscode Remove Edge Mobile (from browsers, schema, etc.) (#4280) Jul 4, 2019
api Add caveat for IE use of createObjectUrl (#5498) Jan 16, 2020
browsers Add first Chromium-based Edge release (#5505) Jan 15, 2020
css Set Samsung Internet version for CSS :is selector (#5500) Jan 15, 2020
docs Update publishing docs and release notes script (#5191) Nov 21, 2019
html Add "loading" attribute for img/iframe HTML elements (#5442) Jan 9, 2020
http removing feature-policy speaker (#5485) Jan 13, 2020
javascript Add Safari version for stable-sorted Array (#5497) Jan 15, 2020
mathml/elements MathML mfenced is gone (#5458) Jan 10, 2020
schemas Fix documentation about usable HTML elements in notes/descriptions (#… Oct 29, 2019
scripts Remove an unused variable from fix.js (#5348) Jan 6, 2020
svg updating word and letter spacing (#5469) Jan 10, 2020
test Limit Chrome/WebView Android + Safari Desktop/iOS to real values for … Jan 15, 2020
webdriver/commands Remove Edge Mobile in webdriver/* (#4277) Jun 13, 2019
webextensions For 1410412 Implement BrowserSetting.onChange (#5437) Jan 2, 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 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 Remove Estelle from peer list (#5492) Jan 14, 2020
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 or non-breaking updates only Jan 16, 2020
package.json Patch release containing data or non-breaking updates only Jan 16, 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.

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.