You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ed/algorithms/html.json
+5-8Lines changed: 5 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -17214,10 +17214,10 @@
17214
17214
"html": "<p><a href=\"https://infra.spec.whatwg.org/#set-append\" id=\"custom-elements-api:set-append\" data-x-internal=\"set-append\">Append</a> <var>definition</var> to <a id=\"custom-elements-api:this-10\" href=\"https://webidl.spec.whatwg.org/#this\" data-x-internal=\"this\">this</a>'s\n <a href=\"https://html.spec.whatwg.org/multipage/custom-elements.html#custom-element-definition-set\" id=\"custom-elements-api:custom-element-definition-set-3\">custom element definition set</a>.</p>"
17215
17215
},
17216
17216
{
17217
-
"html": "<p>If <a id=\"custom-elements-api:this-11\" href=\"https://webidl.spec.whatwg.org/#this\" data-x-internal=\"this\">this</a>'s <a href=\"https://html.spec.whatwg.org/multipage/custom-elements.html#is-scoped\" id=\"custom-elements-api:is-scoped-3\">is scoped</a> is true, then for each <var>document</var>\n of <a id=\"custom-elements-api:this-12\" href=\"https://webidl.spec.whatwg.org/#this\" data-x-internal=\"this\">this</a>'s <a href=\"https://html.spec.whatwg.org/multipage/custom-elements.html#scoped-document-set\" id=\"custom-elements-api:scoped-document-set\">scoped document set</a>: <a href=\"https://html.spec.whatwg.org/multipage/custom-elements.html#upgrade-particular-elements-within-a-document\" id=\"custom-elements-api:upgrade-particular-elements-within-a-document\">upgrade particular elements within\n a document</a> given <var>document</var>and <var>localName</var>.</p>"
17217
+
"html": "<p>If <a id=\"custom-elements-api:this-11\" href=\"https://webidl.spec.whatwg.org/#this\" data-x-internal=\"this\">this</a>'s <a href=\"https://html.spec.whatwg.org/multipage/custom-elements.html#is-scoped\" id=\"custom-elements-api:is-scoped-3\">is scoped</a> is true, then for each <var>document</var>\n of <a id=\"custom-elements-api:this-12\" href=\"https://webidl.spec.whatwg.org/#this\" data-x-internal=\"this\">this</a>'s <a href=\"https://html.spec.whatwg.org/multipage/custom-elements.html#scoped-document-set\" id=\"custom-elements-api:scoped-document-set\">scoped document set</a>: <a href=\"https://html.spec.whatwg.org/multipage/custom-elements.html#upgrade-particular-elements-within-a-document\" id=\"custom-elements-api:upgrade-particular-elements-within-a-document\">upgrade particular elements within\n a document</a> given <var>document</var>, <var>definition</var>, and\n <var>localName</var>.</p>"
17218
17218
},
17219
17219
{
17220
-
"html": "<p>Otherwise, <a href=\"https://html.spec.whatwg.org/multipage/custom-elements.html#upgrade-particular-elements-within-a-document\" id=\"custom-elements-api:upgrade-particular-elements-within-a-document-2\">upgrade particular elements within a document</a> given\n <a id=\"custom-elements-api:this-13\" href=\"https://webidl.spec.whatwg.org/#this\" data-x-internal=\"this\">this</a>'s <a id=\"custom-elements-api:concept-relevant-global\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global\">relevant global object</a>'s <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#concept-document-window\" id=\"custom-elements-api:concept-document-window-4\">associated <code>Document</code></a>, <var>localName</var>,\n and <var>name</var>.</p>"
17220
+
"html": "<p>Otherwise, <a href=\"https://html.spec.whatwg.org/multipage/custom-elements.html#upgrade-particular-elements-within-a-document\" id=\"custom-elements-api:upgrade-particular-elements-within-a-document-2\">upgrade particular elements within a document</a> given\n <a id=\"custom-elements-api:this-13\" href=\"https://webidl.spec.whatwg.org/#this\" data-x-internal=\"this\">this</a>'s <a id=\"custom-elements-api:concept-relevant-global\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global\">relevant global object</a>'s <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#concept-document-window\" id=\"custom-elements-api:concept-document-window-4\">associated <code>Document</code></a>, <var>definition</var>,\n <var>localName</var>, and <var>name</var>.</p>"
"html": "To <dfn id=\"upgrade-particular-elements-within-a-document\">upgrade particular elements within a document</dfn> given a <code id=\"custom-elements-api:document-4\"><a href=\"https://html.spec.whatwg.org/multipage/dom.html#document\">Document</a></code>\n object <var>document</var>, a string <var>localName</var>, and optionally a string <var>name</var>\n (default <var>localName</var>):",
17239
+
"html": "To <dfn id=\"upgrade-particular-elements-within-a-document\">upgrade particular elements within a document</dfn> given a <code id=\"custom-elements-api:document-4\"><a href=\"https://html.spec.whatwg.org/multipage/dom.html#document\">Document</a></code>\n object <var>document</var>, a <a href=\"https://html.spec.whatwg.org/multipage/custom-elements.html#custom-element-definition\" id=\"custom-elements-api:custom-element-definition-6\">custom element definition</a> <var>definition</var>, a\n string <var>localName</var>, and optionally a string <var>name</var>(default\n <var>localName</var>):",
17240
17240
"rationale": "let",
17241
17241
"steps": [
17242
17242
{
@@ -17363,10 +17363,7 @@
17363
17363
"html": "<p>Let <var>C</var> be <var>definition</var>'s <a href=\"https://html.spec.whatwg.org/multipage/custom-elements.html#concept-custom-element-definition-constructor\" id=\"upgrades:concept-custom-element-definition-constructor\">constructor</a>.</p>"
17364
17364
},
17365
17365
{
17366
-
"html": "<p>Let <var>registry</var> be <var>element</var>'s <a href=\"https://dom.spec.whatwg.org/#element-custom-element-registry\" id=\"upgrades:element-custom-element-registry\" data-x-internal=\"element-custom-element-registry\">custom element registry</a>.</p>"
17367
-
},
17368
-
{
17369
-
"html": "<p><a href=\"https://infra.spec.whatwg.org/#map-set\" id=\"upgrades:map-set\" data-x-internal=\"map-set\">Set</a> the <a id=\"upgrades:surrounding-agent\" href=\"https://tc39.es/ecma262/#surrounding-agent\" data-x-internal=\"surrounding-agent\">surrounding agent</a>'s <a href=\"https://html.spec.whatwg.org/multipage/custom-elements.html#active-custom-element-constructor-map\" id=\"upgrades:active-custom-element-constructor-map\">active custom\n element constructor map</a>[<var>C</var>] to <var>registry</var>.</p>"
17366
+
"html": "<p><a href=\"https://infra.spec.whatwg.org/#map-set\" id=\"upgrades:map-set\" data-x-internal=\"map-set\">Set</a> the <a id=\"upgrades:surrounding-agent\" href=\"https://tc39.es/ecma262/#surrounding-agent\" data-x-internal=\"surrounding-agent\">surrounding agent</a>'s <a href=\"https://html.spec.whatwg.org/multipage/custom-elements.html#active-custom-element-constructor-map\" id=\"upgrades:active-custom-element-constructor-map\">active custom\n element constructor map</a>[<var>C</var>] to <var>element</var>'s <a href=\"https://dom.spec.whatwg.org/#element-custom-element-registry\" id=\"upgrades:element-custom-element-registry\" data-x-internal=\"element-custom-element-registry\">custom element registry</a>.</p>"
17370
17367
},
17371
17368
{
17372
17369
"html": "Run the following steps while catching any exceptions:",
"html": "<p><a href=\"https://infra.spec.whatwg.org/#map-remove\" id=\"upgrades:map-remove\" data-x-internal=\"map-remove\">Remove</a> the <a id=\"upgrades:surrounding-agent-2\" href=\"https://tc39.es/ecma262/#surrounding-agent\" data-x-internal=\"surrounding-agent\">surrounding agent</a>'s <a href=\"https://html.spec.whatwg.org/multipage/custom-elements.html#active-custom-element-constructor-map\" id=\"upgrades:active-custom-element-constructor-map-2\">active\n custom element constructor map</a>[<var>C</var>].</p>"
17395
17392
},
17396
17393
{
17397
17394
"html": "<p>Remove the last entry from the end of <var>definition</var>'s <a href=\"https://html.spec.whatwg.org/multipage/custom-elements.html#concept-custom-element-definition-construction-stack\" id=\"upgrades:concept-custom-element-definition-construction-stack-2\">construction stack</a>.</p>"
0 commit comments