From e052e53106fcfacacb05027266d4f6705309eb24 Mon Sep 17 00:00:00 2001 From: Snuggs Date: Sat, 11 Nov 2017 13:25:54 +0100 Subject: [PATCH 01/10] Editorial: Add CustomElementRegistry platform support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - [x] √ CustomElementRegistry` Basic support - [ ] √ CustomElementRegistry.define()` support - [ ] √ CustomElementRegistry.get()` get - [ ] √ CustomElementRegistry.whenDefined()` whenDefined Addresses: - https://github.com/w3c/webcomponents/issues/664 Related MDN Documentation: - `CustomElementRegistry.define()` - https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define - `CustomElementRegistry.get()` - https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/get - `CustomElementRegistry.whenDefined()` - https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/whenDefined References: - https://caniuse.com/#feat=custom-elementsv1 - Chrome Status - http://www.chromestatus.com/feature/4696261944934400 - Firefox Status - https://platform-status.mozilla.org/#custom-elements - Webkit Status - http://webkit.org/status.html#feature-custom-elements - Edge Status - http://status.modern.ie/customelements Notes: - Firefox flag status - https://bugzilla.mozilla.org/show_bug.cgi?id=889230#c9 --- api/CustomElementRegistry.json | 65 ++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 api/CustomElementRegistry.json diff --git a/api/CustomElementRegistry.json b/api/CustomElementRegistry.json new file mode 100644 index 00000000000000..e4d3d7f6ef88f4 --- /dev/null +++ b/api/CustomElementRegistry.json @@ -0,0 +1,65 @@ +{ + "api": { + "CustomElementRegistry": { + "__compat": { + "mdn_url": "https://developer.mozilla.org/docs/Web/API/CustomElementRegistry", + "description": "The CustomElementRegistry interface provides methods for registering custom elements and querying registered elements.", + "support": { + "chrome": { + "version_added": "33", + "notes": "Chrome 36+/Opera 20+ implemented a previous version of Custom Elements (v0) that used `.registerElement()`" + }, + "firefox": { + "version_added": true, + "notes": "Enabled through the `dom.webcomponents.enabled` preference in `about:config`" + }, + "safari": { + "version_added": "10.1", + "notes": "Supports 'Autonomous custom elements' but not 'Customized built-in elements'" + }, + "edge": { + "version_added": false, + "notes": "Under consideration" + }, + "ie": { + "version_added": false + }, + "opera": { + "version_added": "41", + "notes": "Supports 'Autonomous custom elements' but not 'Customized built-in elements'" + }, + + + "chrome_android": { + "version_added": "61", + "notes": "Supports 'Autonomous custom elements' but not 'Customized built-in elements'" + }, + "webview_android": { + "version_added": "56", + "notes": "Supports 'Autonomous custom elements' but not 'Customized built-in elements'" + }, + "edge_mobile": { + "version_added": false, + "notes": "Under consideration" + }, + "safari_ios": { + "version_added": "10.1", + "notes": "Supports 'Autonomous custom elements' but not 'Customized built-in elements'" + }, + "ie_mobile": { + "version_added": false + }, + "opera_android": { + "version_added": false + } + }, + + "status": { + "experimental": true, + "standard_track": true, + "deprecated": false + } + } + } + } +} From 595325849e0d2ea917cf33edb04b04e288078c43 Mon Sep 17 00:00:00 2001 From: Snuggs Date: Sun, 12 Nov 2017 13:19:22 +0100 Subject: [PATCH 02/10] Editorial: Remove description from interface level Addresses: - https://github.com/mdn/browser-compat-data/pull/623#discussion_r150401820 --- api/CustomElementRegistry.json | 1 - 1 file changed, 1 deletion(-) diff --git a/api/CustomElementRegistry.json b/api/CustomElementRegistry.json index e4d3d7f6ef88f4..714faf2bdda35e 100644 --- a/api/CustomElementRegistry.json +++ b/api/CustomElementRegistry.json @@ -3,7 +3,6 @@ "CustomElementRegistry": { "__compat": { "mdn_url": "https://developer.mozilla.org/docs/Web/API/CustomElementRegistry", - "description": "The CustomElementRegistry interface provides methods for registering custom elements and querying registered elements.", "support": { "chrome": { "version_added": "33", From 85a11a308317ec23490c4dfb801535ff2e372458 Mon Sep 17 00:00:00 2001 From: Snuggs Date: Sun, 12 Nov 2017 13:23:44 +0100 Subject: [PATCH 03/10] Editorial: Fix Chrome versions and notes Addresses: - https://github.com/mdn/browser-compat-data/pull/623#discussion_r150401674 --- api/CustomElementRegistry.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/CustomElementRegistry.json b/api/CustomElementRegistry.json index 714faf2bdda35e..9c4a684736d75c 100644 --- a/api/CustomElementRegistry.json +++ b/api/CustomElementRegistry.json @@ -5,8 +5,8 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/API/CustomElementRegistry", "support": { "chrome": { - "version_added": "33", - "notes": "Chrome 36+/Opera 20+ implemented a previous version of Custom Elements (v0) that used `.registerElement()`" + "version_added": "54", + "notes": "Supports 'Autonomous custom elements' but not 'Customized built-in elements'" }, "firefox": { "version_added": true, From f8186a5b4ef483fce0193cae09983ad646d2a50a Mon Sep 17 00:00:00 2001 From: Snuggs Date: Sun, 12 Nov 2017 13:28:36 +0100 Subject: [PATCH 04/10] Editorial: Add additional restriction notes Addresses: - https://github.com/mdn/browser-compat-data/pull/623#discussion_r150401837 --- api/CustomElementRegistry.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/CustomElementRegistry.json b/api/CustomElementRegistry.json index 9c4a684736d75c..d4a190d56f1ecf 100644 --- a/api/CustomElementRegistry.json +++ b/api/CustomElementRegistry.json @@ -49,7 +49,8 @@ "version_added": false }, "opera_android": { - "version_added": false + "version_added": false, + "notes": "Supports 'Autonomous custom elements' but not 'Customized built-in elements'" } }, From c9714c406d13505d9e4b0a5839ac079c3be543b2 Mon Sep 17 00:00:00 2001 From: Snuggs Date: Sun, 12 Nov 2017 13:29:58 +0100 Subject: [PATCH 05/10] Editorial: Remove empty lines Addresses: - https://github.com/mdn/browser-compat-data/pull/623#discussion_r150401684 --- api/CustomElementRegistry.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/api/CustomElementRegistry.json b/api/CustomElementRegistry.json index d4a190d56f1ecf..98142bc0c09ff6 100644 --- a/api/CustomElementRegistry.json +++ b/api/CustomElementRegistry.json @@ -27,8 +27,6 @@ "version_added": "41", "notes": "Supports 'Autonomous custom elements' but not 'Customized built-in elements'" }, - - "chrome_android": { "version_added": "61", "notes": "Supports 'Autonomous custom elements' but not 'Customized built-in elements'" @@ -53,7 +51,6 @@ "notes": "Supports 'Autonomous custom elements' but not 'Customized built-in elements'" } }, - "status": { "experimental": true, "standard_track": true, From f17a21a6ba607dc4786874ecae3dd32fac4aa143 Mon Sep 17 00:00:00 2001 From: Snuggs Date: Sun, 12 Nov 2017 13:34:43 +0100 Subject: [PATCH 06/10] Editorial: Update entry order Addresses: - https://github.com/mdn/browser-compat-data/pull/623#discussion_r150401700 --- api/CustomElementRegistry.json | 42 +++++++++++++++++----------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/api/CustomElementRegistry.json b/api/CustomElementRegistry.json index 98142bc0c09ff6..fa407822f6c5cc 100644 --- a/api/CustomElementRegistry.json +++ b/api/CustomElementRegistry.json @@ -4,51 +4,51 @@ "__compat": { "mdn_url": "https://developer.mozilla.org/docs/Web/API/CustomElementRegistry", "support": { + "webview_android": { + "version_added": "56", + "notes": "Supports 'Autonomous custom elements' but not 'Customized built-in elements'" + }, "chrome": { "version_added": "54", "notes": "Supports 'Autonomous custom elements' but not 'Customized built-in elements'" }, - "firefox": { - "version_added": true, - "notes": "Enabled through the `dom.webcomponents.enabled` preference in `about:config`" - }, - "safari": { - "version_added": "10.1", + "chrome_android": { + "version_added": "61", "notes": "Supports 'Autonomous custom elements' but not 'Customized built-in elements'" }, "edge": { "version_added": false, "notes": "Under consideration" }, + "edge_mobile": { + "version_added": false, + "notes": "Under consideration" + }, + "firefox": { + "version_added": true, + "notes": "Enabled through the `dom.webcomponents.enabled` preference in `about:config`" + }, "ie": { "version_added": false }, + "ie_mobile": { + "version_added": false + }, "opera": { "version_added": "41", "notes": "Supports 'Autonomous custom elements' but not 'Customized built-in elements'" }, - "chrome_android": { - "version_added": "61", + "opera_android": { + "version_added": false, "notes": "Supports 'Autonomous custom elements' but not 'Customized built-in elements'" }, - "webview_android": { - "version_added": "56", + "safari": { + "version_added": "10.1", "notes": "Supports 'Autonomous custom elements' but not 'Customized built-in elements'" }, - "edge_mobile": { - "version_added": false, - "notes": "Under consideration" - }, "safari_ios": { "version_added": "10.1", "notes": "Supports 'Autonomous custom elements' but not 'Customized built-in elements'" - }, - "ie_mobile": { - "version_added": false - }, - "opera_android": { - "version_added": false, - "notes": "Supports 'Autonomous custom elements' but not 'Customized built-in elements'" } }, "status": { From b734b34f342af0c1ad68836850c5bc7ca1cae339 Mon Sep 17 00:00:00 2001 From: Snuggs Date: Sun, 12 Nov 2017 13:37:52 +0100 Subject: [PATCH 07/10] Editorial: Fix opera_android notes Addresses: - https://github.com/mdn/browser-compat-data/pull/623#discussion_r150401850 --- api/CustomElementRegistry.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/CustomElementRegistry.json b/api/CustomElementRegistry.json index fa407822f6c5cc..551d2d04821c12 100644 --- a/api/CustomElementRegistry.json +++ b/api/CustomElementRegistry.json @@ -39,8 +39,7 @@ "notes": "Supports 'Autonomous custom elements' but not 'Customized built-in elements'" }, "opera_android": { - "version_added": false, - "notes": "Supports 'Autonomous custom elements' but not 'Customized built-in elements'" + "version_added": false }, "safari": { "version_added": "10.1", From 42077822e26c94c1221f4388842743a58c2a7e8b Mon Sep 17 00:00:00 2001 From: Snuggs Date: Sun, 12 Nov 2017 16:06:26 +0100 Subject: [PATCH 08/10] Editorial: CustomElementRegistry Set flags for firefox References: - https://github.com/mdn/browser-compat-data/blob/master/compat-data-schema.md#flags --- api/CustomElementRegistry.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/api/CustomElementRegistry.json b/api/CustomElementRegistry.json index 551d2d04821c12..a0ad9646ff5067 100644 --- a/api/CustomElementRegistry.json +++ b/api/CustomElementRegistry.json @@ -26,7 +26,12 @@ }, "firefox": { "version_added": true, - "notes": "Enabled through the `dom.webcomponents.enabled` preference in `about:config`" + "notes": "Enabled through the `dom.webcomponents.enabled` preference in `about:config`", + "flags": { + "type": "preference", + "name": "dom.webcomponents.enabled", + "value_to_set": true + } }, "ie": { "version_added": false From a140245a75d23785d4a14deaa00790f08a6c0bb0 Mon Sep 17 00:00:00 2001 From: Snuggs Date: Sun, 12 Nov 2017 16:36:58 +0100 Subject: [PATCH 09/10] Convert flags to flag --- api/CustomElementRegistry.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/CustomElementRegistry.json b/api/CustomElementRegistry.json index a0ad9646ff5067..c7bbef3079d475 100644 --- a/api/CustomElementRegistry.json +++ b/api/CustomElementRegistry.json @@ -27,10 +27,10 @@ "firefox": { "version_added": true, "notes": "Enabled through the `dom.webcomponents.enabled` preference in `about:config`", - "flags": { + "flag": { "type": "preference", "name": "dom.webcomponents.enabled", - "value_to_set": true + "value_to_set": "true" } }, "ie": { From 0b27628b425fa7ed4d1b2447ac839033a4960c7b Mon Sep 17 00:00:00 2001 From: Snuggs Date: Sun, 26 Nov 2017 00:37:58 -0500 Subject: [PATCH 10/10] Editorial: Remove note from CustomElementRegistry firefox support Addresses: - https://github.com/mdn/browser-compat-data/pull/623#discussion_r152677206 --- api/CustomElementRegistry.json | 1 - 1 file changed, 1 deletion(-) diff --git a/api/CustomElementRegistry.json b/api/CustomElementRegistry.json index c7bbef3079d475..a6787846b93889 100644 --- a/api/CustomElementRegistry.json +++ b/api/CustomElementRegistry.json @@ -26,7 +26,6 @@ }, "firefox": { "version_added": true, - "notes": "Enabled through the `dom.webcomponents.enabled` preference in `about:config`", "flag": { "type": "preference", "name": "dom.webcomponents.enabled",