Skip to content

Commit

Permalink
Remove XPath and XSLT data (#9830)
Browse files Browse the repository at this point in the history
* Remove xpath data

* Remove XSLT data

* Remove XSLT and XPATH from linting, docs, etc.

* Remove spec exception for XSLT
  • Loading branch information
ddbeck authored Aug 17, 2021
1 parent 8cf15c4 commit b10ea96
Show file tree
Hide file tree
Showing 19 changed files with 2 additions and 1,013 deletions.
4 changes: 0 additions & 4 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ data:webdriver :racing_car::
- "webdriver/**"
data:webext :game_die::
- "webextensions/**"
data:xpath :railway_track::
- "xpath/**"
data:xslt :tractor::
- "xslt/**"
dependencies :chains::
- "package-lock.json"
- "package.json"
Expand Down
2 changes: 0 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
"/svg/*.json",
"/webdriver/*.json",
"/webextensions/*.json",
"/xpath/*.json",
"/xslt/*.json",
],
"url": "/schemas/compat-data.schema.json"
},
Expand Down
2 changes: 1 addition & 1 deletion .vscode/snippets.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"prefix": ["bcd", "browser-compat"],
"body": [
"{",
" \"${1|api,css,html,http,javascript,mathml,svg,webdriver,webextensions,xpath,xslt|}\": {",
" \"${1|api,css,html,http,javascript,mathml,svg,webdriver,webextensions|}\": {",
" \"${2:${TM_FILENAME_BASE}}\": {",
" \"__compat\": {",
" \"mdn_url\": \"${3:mdn-url}\",",
Expand Down
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,6 @@ Data for [WebExtensions](https://developer.mozilla.org/en-US/Add-ons/WebExtensio
- `api` - WebExtension-specific APIs
- `manifest` - `manifest.json` keys

### [`xpath`](xpath)

Data for [XPath](https://developer.mozilla.org/en-US/docs/Web/XPath) features.

### [`xslt`](xslt)

Data for [XSLT](https://developer.mozilla.org/en-US/docs/Web/XSLT) features.

## Semantic versioning policy

For the purposes of [semantic versioning](https://semver.org/) (SemVer), the public API consists of:
Expand Down
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,4 @@ module.exports = load(
'svg',
'webdriver',
'webextensions',
'xpath',
'xslt',
);
4 changes: 0 additions & 4 deletions schemas/compat-data-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ JSON files containing the compatibility data.

- [webextensions/](../webextensions) contains data for [WebExtensions](https://developer.mozilla.org/en-US/Add-ons/WebExtensions) JavaScript APIs and manifest keys.

- [xpath/](../xpath) contains data for [XPath](https://developer.mozilla.org/docs/Web/XPath) axes, and functions.

- [xslt/](../xslt) contains data for [XSLT](https://developer.mozilla.org/docs/Web/XSLT) elements, attributes, and global attributes.

### File and folder breakdown

The JSON files contain [feature identifiers](#feature-identifiers),
Expand Down
13 changes: 1 addition & 12 deletions scripts/traverse.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,7 @@ function traverseFeatures(obj, depth, identifier) {
let features = [];
const folders =
argv.folder == 'all'
? [
'api',
'css',
'html',
'http',
'svg',
'javascript',
'mathml',
'webdriver',
'xpath',
'xslt',
]
? ['api', 'css', 'html', 'http', 'svg', 'javascript', 'mathml', 'webdriver']
: argv.folder.split(',');
const values = Array.isArray(argv.value)
? argv.value
Expand Down
2 changes: 0 additions & 2 deletions test/lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ var hasErrors = argv.files
'mathml',
'webdriver',
'webextensions',
'xpath',
'xslt',
);
hasErrors = testCompareFeatures() || hasErrors;
hasErrors = testMigrations() || hasErrors;
Expand Down
2 changes: 0 additions & 2 deletions test/linter/test-real-values.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ const blockList = {
mathml: blockMany,
webdriver: blockMany,
webextensions: [],
xpath: [],
xslt: [],
};

/**
Expand Down
4 changes: 0 additions & 4 deletions test/spec-urls.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ describe('spec_url data', () => {

// Remove if https://github.com/w3c/mathml/issues/216 is resolved
'https://w3c.github.io/mathml/',

// Remove when xpath/xslt data is removed in https://github.com/mdn/browser-compat-data/pull/9830
'https://www.w3.org/TR/xpath-31/',
'https://www.w3.org/TR/xslt-30/',
];

const allowList = new Set([...specsFromBrowserSpecs, ...specsExceptions]);
Expand Down
12 changes: 0 additions & 12 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,16 +375,4 @@ interface CompatDataIdentifiers
* JavaScript APIs and manifest keys.
*/
webextensions: PrimaryIdentifier;

/**
* Contains data for [XPath](https://developer.mozilla.org/docs/Web/XPath)
* axes, and functions.
*/
xpath: PrimaryIdentifier;

/**
* Contains data for [XSLT](https://developer.mozilla.org/docs/Web/XSLT)
* elements, attributes, and global attributes.
*/
xslt: PrimaryIdentifier;
}
2 changes: 0 additions & 2 deletions utils/walk.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ describe('lowLevelWalk()', function () {
'svg',
'webdriver',
'webextensions',
'xpath',
'xslt',
];

const steps = Array.from(lowLevelWalk(undefined, undefined, 1));
Expand Down
55 changes: 0 additions & 55 deletions xpath/axes/self.json

This file was deleted.

Loading

0 comments on commit b10ea96

Please sign in to comment.