Giter VIP home page Giter VIP logo

browser-compat-data's Introduction

browser-compat-data

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

Maintained by the MDN team at Mozilla.

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 JavaScript APIs.

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 files containing the compatibility data. At the moment the format used is not common across all files, but we're hoping to standardize on a common format.

api

Contains experimental data for Web APIs.

css

Contains experimental data for Web APIs.

http

Contains experimental data for HTTP.

javascript

Contains experimental data for JavaScript.

webextensions

WebExtensions are a cross-browser system for developing browser add-ons.

The "webextensions" directory contains two files:

The definitive description of the format used by WebExtensions is the schema file. But since the schema is hard to read, here's an English description of it:

  • the file contains a single JSON object, which has one property for each WebExtensions API. The name of the property is the name of the API (for example, "i18n", or "downloads"). The value is an api object.

  • an api object has one property for each API element in the API (each method, property, type, and event). The name of the property is the name of the element. For example, "getMessage" or "create". The value of that property is an browser-support object.

  • a browser-support object contains a property for each browser for which we are capturing support data. For WebExtensions, this is: "Chrome", "Edge", "Firefox", "Firefox for Android", "Opera". Each of these properties is a support-statement object.

  • a support-statement object has:

    • one mandatory property "support". This can be any of:

      • true (it is supported, but we don't know the version that added support)
      • false
      • "Unknown"
      • a version string
    • one optional property "notes", which is an array of strings. This adds any extra information about support in this browser. It's a good idea to use different strings to comment on different aspects of support. For example: ["does not support 'byUser'", "explodes randomly"].

Please note that we do not (yet) guarantee the stability of the data format. You're welcome to use the data, but its structure is subject to change without notice.

Problems?

If you find a problem, please file a bug.

Contributing

We're very happy to accept contributions to this data. Please familiarize yourself with the schema for the data you're editing, and send us a pull request.

Build Status

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.