-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Labels
docsIssues or pull requests regarding the documentation of this project.Issues or pull requests regarding the documentation of this project.linterIssues or pull requests regarding the tests / linter of the JSON files.Issues or pull requests regarding the tests / linter of the JSON files.
Description
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
docsIssues or pull requests regarding the documentation of this project.Issues or pull requests regarding the documentation of this project.linterIssues or pull requests regarding the tests / linter of the JSON files.Issues or pull requests regarding the tests / linter of the JSON files.