Skip to content

Commit

Permalink
Issue #5552 - Update whenDefined steps to resolve with the class
Browse files Browse the repository at this point in the history
  • Loading branch information
WebReflection committed Sep 2, 2020
1 parent 9260176 commit eed9aad
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -66121,11 +66121,11 @@ dictionary <dfn>ElementDefinitionOptions</dfn> {
<dt><var>window</var> . <code data-x="dom-window-customElements">customElements</code> . <code
subdfn data-x="dom-CustomElementRegistry-whenDefined">whenDefined</code>(<var>name</var>)</dt>

<dd>Returns a promise that will be fulfilled when a <span>custom element</span> becomes defined
with the given name. (If such a <span>custom element</span> is already defined, the returned
promise will be immediately fulfilled.) Returns a promise rejected with a
<span>"<code>SyntaxError</code>"</span> <code>DOMException</code> if not given a <span>valid
custom element name</span>.</dd>
<dd>Returns a promise that will be fulfilled with the <span>custom element</span>'s constructor
when a <span>custom element</span> becomes defined with the given name.
(If such a <span>custom element</span> is already defined, the returned promise will be immediately
fulfilled.) Returns a promise rejected with a <span>"<code>SyntaxError</code>"</span>
<code>DOMException</code> if not given a <span>valid custom element name</span>.</dd>

<dt><var>window</var> . <code data-x="dom-window-customElements">customElements</code> . <code
subdfn data-x="dom-CustomElementRegistry-upgrade">upgrade</code>(<var>root</var>)</dt>
Expand Down Expand Up @@ -66340,7 +66340,7 @@ dictionary <dfn>ElementDefinitionOptions</dfn> {
<ol>
<li><p>Let <var>promise</var> be the value of that entry.</p></li>

<li><p>Resolve <var>promise</var> with undefined.</p></li>
<li><p>Resolve <var>promise</var> with <var>constructor</var>.</p></li>

<li><p>Delete the entry with key <var>name</var> from this
<code>CustomElementRegistry</code>'s <span>when-defined promise map</span>.</p></li>
Expand Down Expand Up @@ -66370,7 +66370,7 @@ dictionary <dfn>ElementDefinitionOptions</dfn> {

<li><p>If this <code>CustomElementRegistry</code> contains an entry with <span
data-x="concept-custom-element-definition-name">name</span> <var>name</var>, then return a new
promise resolved with the class used to define such entry.</p></li>
promise resolved with that entry's <span data-x="concept-custom-element-definition-constructor">constructor</span>.</p></li>

<li><p>Let <var>map</var> be this <code>CustomElementRegistry</code>'s <span>when-defined
promise map</span>.</p></li>
Expand Down

0 comments on commit eed9aad

Please sign in to comment.