diff --git a/.github/labeler.yml b/.github/labeler.yml index c70361d20724e0..1846ce4fd1da02 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -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" diff --git a/.vscode/settings.json b/.vscode/settings.json index 454adff39ca5a0..c51b5dcc491437 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -20,8 +20,6 @@ "/svg/*.json", "/webdriver/*.json", "/webextensions/*.json", - "/xpath/*.json", - "/xslt/*.json", ], "url": "/schemas/compat-data.schema.json" }, diff --git a/.vscode/snippets.code-snippets b/.vscode/snippets.code-snippets index 9d7178fed7e921..0f2d11d416b41d 100644 --- a/.vscode/snippets.code-snippets +++ b/.vscode/snippets.code-snippets @@ -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}\",", diff --git a/README.md b/README.md index 719ddd4df4a2f2..421e5955211be9 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/index.js b/index.js index 279d86221efc35..4d92ac49e3f5ed 100644 --- a/index.js +++ b/index.js @@ -70,6 +70,4 @@ module.exports = load( 'svg', 'webdriver', 'webextensions', - 'xpath', - 'xslt', ); diff --git a/schemas/compat-data-schema.md b/schemas/compat-data-schema.md index fee4b994d71606..ab03bec2b7b1d0 100644 --- a/schemas/compat-data-schema.md +++ b/schemas/compat-data-schema.md @@ -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), diff --git a/scripts/traverse.js b/scripts/traverse.js index 7a9aaaa4d4b748..d911f49afc714f 100644 --- a/scripts/traverse.js +++ b/scripts/traverse.js @@ -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 diff --git a/test/lint.js b/test/lint.js index 4d8379c7fd27e8..df96d2b793a00a 100644 --- a/test/lint.js +++ b/test/lint.js @@ -155,8 +155,6 @@ var hasErrors = argv.files 'mathml', 'webdriver', 'webextensions', - 'xpath', - 'xslt', ); hasErrors = testCompareFeatures() || hasErrors; hasErrors = testMigrations() || hasErrors; diff --git a/test/linter/test-real-values.js b/test/linter/test-real-values.js index b4189e67798a1a..3e07f424a7bb8d 100644 --- a/test/linter/test-real-values.js +++ b/test/linter/test-real-values.js @@ -37,8 +37,6 @@ const blockList = { mathml: blockMany, webdriver: blockMany, webextensions: [], - xpath: [], - xslt: [], }; /** diff --git a/test/spec-urls.test.js b/test/spec-urls.test.js index 9b3d5ca2690b25..184cc1b59823cb 100644 --- a/test/spec-urls.test.js +++ b/test/spec-urls.test.js @@ -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]); diff --git a/types.d.ts b/types.d.ts index 29ae08a6b54e8c..f1b922eafea671 100644 --- a/types.d.ts +++ b/types.d.ts @@ -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; } diff --git a/utils/walk.test.js b/utils/walk.test.js index 78e200674e6cf2..35c5b4871ebbf8 100644 --- a/utils/walk.test.js +++ b/utils/walk.test.js @@ -17,8 +17,6 @@ describe('lowLevelWalk()', function () { 'svg', 'webdriver', 'webextensions', - 'xpath', - 'xslt', ]; const steps = Array.from(lowLevelWalk(undefined, undefined, 1)); diff --git a/xpath/axes/self.json b/xpath/axes/self.json deleted file mode 100644 index a70fb001e6b917..00000000000000 --- a/xpath/axes/self.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "xpath": { - "axes": { - "self": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/XPath/Axes/self", - "spec_url": "https://www.w3.org/TR/xpath-31/#axes", - "support": { - "chrome": { - "version_added": true - }, - "chrome_android": { - "version_added": true - }, - "edge": { - "version_added": null - }, - "firefox": { - "version_added": true - }, - "firefox_android": { - "version_added": true - }, - "ie": { - "version_added": null - }, - "opera": { - "version_added": true - }, - "opera_android": { - "version_added": true - }, - "safari": { - "version_added": null - }, - "safari_ios": { - "version_added": null - }, - "samsunginternet_android": { - "version_added": true - }, - "webview_android": { - "version_added": true - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - } - } - } -} diff --git a/xslt/elements/stylesheet.json b/xslt/elements/stylesheet.json deleted file mode 100644 index e75735a5a4391a..00000000000000 --- a/xslt/elements/stylesheet.json +++ /dev/null @@ -1,251 +0,0 @@ -{ - "xslt": { - "elements": { - "stylesheet": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/XSLT/Element/stylesheet", - "spec_url": "https://www.w3.org/TR/xslt-30/#stylesheet-element", - "support": { - "chrome": { - "version_added": "1" - }, - "chrome_android": { - "version_added": "18" - }, - "edge": { - "version_added": "12" - }, - "firefox": { - "version_added": "1.5" - }, - "firefox_android": { - "version_added": "4" - }, - "ie": { - "version_added": true - }, - "opera": { - "version_added": true - }, - "opera_android": { - "version_added": true - }, - "safari": { - "version_added": "3" - }, - "safari_ios": { - "version_added": "3" - }, - "samsunginternet_android": { - "version_added": "1.0" - }, - "webview_android": { - "version_added": "1" - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - }, - "exclude-result-prefixes": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/XSLT/Element/stylesheet#attr-exclude-result-prefixes", - "support": { - "chrome": { - "version_added": null - }, - "chrome_android": { - "version_added": null - }, - "edge": { - "version_added": null - }, - "firefox": { - "version_added": true - }, - "firefox_android": { - "version_added": true - }, - "ie": { - "version_added": null - }, - "opera": { - "version_added": null - }, - "opera_android": { - "version_added": null - }, - "safari": { - "version_added": null - }, - "safari_ios": { - "version_added": null - }, - "samsunginternet_android": { - "version_added": null - }, - "webview_android": { - "version_added": null - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - }, - "extension-element-prefixes": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/XSLT/Element/stylesheet#attr-extension-element-prefixes", - "support": { - "chrome": { - "version_added": null - }, - "chrome_android": { - "version_added": null - }, - "edge": { - "version_added": null - }, - "firefox": { - "version_added": false - }, - "firefox_android": { - "version_added": false - }, - "ie": { - "version_added": null - }, - "opera": { - "version_added": null - }, - "opera_android": { - "version_added": null - }, - "safari": { - "version_added": null - }, - "safari_ios": { - "version_added": null - }, - "samsunginternet_android": { - "version_added": null - }, - "webview_android": { - "version_added": null - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - }, - "id": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/XSLT/Element/stylesheet#attr-id", - "support": { - "chrome": { - "version_added": null - }, - "chrome_android": { - "version_added": null - }, - "edge": { - "version_added": null - }, - "firefox": { - "version_added": "7", - "partial_implementation": true, - "notes": "Supported only if explicitly called out by an inline DTD." - }, - "firefox_android": { - "version_added": "7", - "partial_implementation": true, - "notes": "Supported only if explicitly called out by an inline DTD." - }, - "ie": { - "version_added": null - }, - "opera": { - "version_added": null - }, - "opera_android": { - "version_added": null - }, - "safari": { - "version_added": null - }, - "safari_ios": { - "version_added": null - }, - "samsunginternet_android": { - "version_added": null - }, - "webview_android": { - "version_added": null - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - }, - "version": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/XSLT/Element/stylesheet#attr-version", - "support": { - "chrome": { - "version_added": "1" - }, - "chrome_android": { - "version_added": "18" - }, - "edge": { - "version_added": "12" - }, - "firefox": { - "version_added": "1.5" - }, - "firefox_android": { - "version_added": "4" - }, - "ie": { - "version_added": true - }, - "opera": { - "version_added": true - }, - "opera_android": { - "version_added": true - }, - "safari": { - "version_added": "3" - }, - "safari_ios": { - "version_added": "3" - }, - "samsunginternet_android": { - "version_added": "1.0" - }, - "webview_android": { - "version_added": "1" - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - } - } - } - } -} diff --git a/xslt/exslt/exsl.json b/xslt/exslt/exsl.json deleted file mode 100644 index 37fd94488b76e3..00000000000000 --- a/xslt/exslt/exsl.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "xslt": { - "exslt": { - "exsl": { - "node-set": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/EXSLT/exsl/node-set", - "description": "exsl:node-set()", - "support": { - "chrome": { - "version_added": null - }, - "edge": { - "version_added": null - }, - "firefox": { - "version_added": "3" - }, - "firefox_android": { - "version_added": "4" - }, - "ie": { - "version_added": null - }, - "opera": { - "version_added": null - }, - "safari": { - "version_added": null - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - }, - "object-type": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/EXSLT/exsl/object-type", - "description": "exsl:object-type()", - "support": { - "chrome": { - "version_added": null - }, - "edge": { - "version_added": null - }, - "firefox": { - "version_added": "3" - }, - "firefox_android": { - "version_added": "4" - }, - "ie": { - "version_added": null - }, - "opera": { - "version_added": null - }, - "safari": { - "version_added": null - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - } - } - } - } -} diff --git a/xslt/exslt/math.json b/xslt/exslt/math.json deleted file mode 100644 index b4c2a6b91a83d6..00000000000000 --- a/xslt/exslt/math.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "xslt": { - "exslt": { - "math": { - "highest": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/EXSLT/math/highest", - "description": "math:highest()", - "support": { - "chrome": { - "version_added": null - }, - "edge": { - "version_added": null - }, - "firefox": { - "version_added": "3" - }, - "firefox_android": { - "version_added": "4" - }, - "ie": { - "version_added": null - }, - "opera": { - "version_added": null - }, - "safari": { - "version_added": null - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - }, - "lowest": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/EXSLT/math/lowest", - "description": "math:lowest()", - "support": { - "chrome": { - "version_added": null - }, - "edge": { - "version_added": null - }, - "firefox": { - "version_added": "3" - }, - "firefox_android": { - "version_added": "4" - }, - "ie": { - "version_added": null - }, - "opera": { - "version_added": null - }, - "safari": { - "version_added": null - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - }, - "max": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/EXSLT/math/max", - "description": "math:max()", - "support": { - "chrome": { - "version_added": null - }, - "edge": { - "version_added": null - }, - "firefox": { - "version_added": "3" - }, - "firefox_android": { - "version_added": "4" - }, - "ie": { - "version_added": null - }, - "opera": { - "version_added": null - }, - "safari": { - "version_added": null - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - }, - "min": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/EXSLT/math/min", - "description": "math:min()", - "support": { - "chrome": { - "version_added": null - }, - "edge": { - "version_added": null - }, - "firefox": { - "version_added": "3" - }, - "firefox_android": { - "version_added": "4" - }, - "ie": { - "version_added": null - }, - "opera": { - "version_added": null - }, - "safari": { - "version_added": null - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - } - } - } - } -} diff --git a/xslt/exslt/regexp.json b/xslt/exslt/regexp.json deleted file mode 100644 index 8ccba651a108c7..00000000000000 --- a/xslt/exslt/regexp.json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "xslt": { - "exslt": { - "regexp": { - "match": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/EXSLT/regexp/match", - "description": "regexp:match()", - "support": { - "chrome": { - "version_added": null - }, - "edge": { - "version_added": null - }, - "firefox": { - "version_added": "3" - }, - "firefox_android": { - "version_added": "4" - }, - "ie": { - "version_added": null - }, - "opera": { - "version_added": null - }, - "safari": { - "version_added": null - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - }, - "replace": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/EXSLT/regexp/replace", - "description": "regexp:replace()", - "support": { - "chrome": { - "version_added": null - }, - "edge": { - "version_added": null - }, - "firefox": { - "version_added": "3" - }, - "firefox_android": { - "version_added": "4" - }, - "ie": { - "version_added": null - }, - "opera": { - "version_added": null - }, - "safari": { - "version_added": null - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - }, - "test": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/EXSLT/regexp/test", - "description": "regexp:test()", - "support": { - "chrome": { - "version_added": null - }, - "edge": { - "version_added": null - }, - "firefox": { - "version_added": "3" - }, - "firefox_android": { - "version_added": "4" - }, - "ie": { - "version_added": null - }, - "opera": { - "version_added": null - }, - "safari": { - "version_added": null - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - } - } - } - } -} diff --git a/xslt/exslt/set.json b/xslt/exslt/set.json deleted file mode 100644 index 5b236871da0e60..00000000000000 --- a/xslt/exslt/set.json +++ /dev/null @@ -1,212 +0,0 @@ -{ - "xslt": { - "exslt": { - "set": { - "difference": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/EXSLT/set/difference", - "description": "set:difference()", - "support": { - "chrome": { - "version_added": null - }, - "edge": { - "version_added": null - }, - "firefox": { - "version_added": "3" - }, - "firefox_android": { - "version_added": "4" - }, - "ie": { - "version_added": null - }, - "opera": { - "version_added": null - }, - "safari": { - "version_added": null - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - }, - "distinct": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/EXSLT/set/distinct", - "description": "set:distinct()", - "support": { - "chrome": { - "version_added": null - }, - "edge": { - "version_added": null - }, - "firefox": { - "version_added": "3" - }, - "firefox_android": { - "version_added": "4" - }, - "ie": { - "version_added": null - }, - "opera": { - "version_added": null - }, - "safari": { - "version_added": null - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - }, - "has-same-node": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/EXSLT/set/has-same-node", - "description": "set:has-same-node()", - "support": { - "chrome": { - "version_added": null - }, - "edge": { - "version_added": null - }, - "firefox": { - "version_added": "3" - }, - "firefox_android": { - "version_added": "4" - }, - "ie": { - "version_added": null - }, - "opera": { - "version_added": null - }, - "safari": { - "version_added": null - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - }, - "intersection": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/EXSLT/set/intersection", - "description": "set:intersection()", - "support": { - "chrome": { - "version_added": null - }, - "edge": { - "version_added": null - }, - "firefox": { - "version_added": "3" - }, - "firefox_android": { - "version_added": "4" - }, - "ie": { - "version_added": null - }, - "opera": { - "version_added": null - }, - "safari": { - "version_added": null - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - }, - "leading": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/EXSLT/set/leading", - "description": "set:leading()", - "support": { - "chrome": { - "version_added": null - }, - "edge": { - "version_added": null - }, - "firefox": { - "version_added": "3" - }, - "firefox_android": { - "version_added": "4" - }, - "ie": { - "version_added": null - }, - "opera": { - "version_added": null - }, - "safari": { - "version_added": null - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - }, - "trailing": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/EXSLT/set/trailing", - "description": "set:trailing()", - "support": { - "chrome": { - "version_added": null - }, - "edge": { - "version_added": null - }, - "firefox": { - "version_added": "3" - }, - "firefox_android": { - "version_added": "4" - }, - "ie": { - "version_added": null - }, - "opera": { - "version_added": null - }, - "safari": { - "version_added": null - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - } - } - } - } -} diff --git a/xslt/exslt/str.json b/xslt/exslt/str.json deleted file mode 100644 index 372aa540712da2..00000000000000 --- a/xslt/exslt/str.json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "xslt": { - "exslt": { - "str": { - "concat": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/EXSLT/str/concat", - "description": "str:concat()", - "support": { - "chrome": { - "version_added": null - }, - "edge": { - "version_added": null - }, - "firefox": { - "version_added": "3" - }, - "firefox_android": { - "version_added": "4" - }, - "ie": { - "version_added": null - }, - "opera": { - "version_added": null - }, - "safari": { - "version_added": null - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - }, - "split": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/EXSLT/str/split", - "description": "str:split()", - "support": { - "chrome": { - "version_added": null - }, - "edge": { - "version_added": null - }, - "firefox": { - "version_added": "3" - }, - "firefox_android": { - "version_added": "4" - }, - "ie": { - "version_added": null - }, - "opera": { - "version_added": null - }, - "safari": { - "version_added": null - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - }, - "tokenize": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/EXSLT/str/tokenize", - "description": "str:tokenize()", - "support": { - "chrome": { - "version_added": null - }, - "edge": { - "version_added": null - }, - "firefox": { - "version_added": "3" - }, - "firefox_android": { - "version_added": "4" - }, - "ie": { - "version_added": null - }, - "opera": { - "version_added": null - }, - "safari": { - "version_added": null - } - }, - "status": { - "experimental": false, - "standard_track": true, - "deprecated": false - } - } - } - } - } - } -}