Skip to content

Require desktop browsers in lint and add them where missing #3410

@foolip

Description

@foolip

Here is a piece of Attr.json:

      "localName": {
        "__compat": {
          "mdn_url": "https://developer.mozilla.org/docs/Web/API/Attr/localName",
          "support": {
            "chrome": {
              "version_added": "46",
              "notes": "This API was previously available on the <a href='https://developer.mozilla.org/docs/Web/API/Node'><code>Node</code></a> API."
            },
            "firefox": {
              "version_added": "48",
              "notes": "This API was previously available on the <a href='https://developer.mozilla.org/docs/Web/API/Node'><code>Node</code></a> API."
            },
            "firefox_android": {
              "version_added": "48",
              "notes": "This API was previously available on the <a href='https://developer.mozilla.org/docs/Web/API/Node'><code>Node</code></a> API."
            },
            "ie": {
              "version_added": null
            },
            "opera": {
              "version_added": true
            },
            "opera_android": {
              "version_added": null
            },
            "safari": {
              "version_added": null
            },
            "safari_ios": {
              "version_added": null
            },
            "webview_android": {
              "version_added": null
            }
          },
          "status": {
            "experimental": false,
            "standard_track": true,
            "deprecated": false
          }
        }
      },

Some browsers, like "edge" and "chrome_android", are missing here, while others are present with "version_added": null.

While it's possible to write code that deals with either case, it would be a bit more convenient if a lint enforced one style or the other.

@Elchi3 preferences?

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsIssues or pull requests regarding the documentation of this project.linterIssues or pull requests regarding the tests / linter of the JSON files.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions