Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 14 additions & 19 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -5475,7 +5475,7 @@ interface Document : Node {
interface XMLDocument : Document {};

dictionary ElementCreationOptions {
CustomElementRegistry customElementRegistry;
CustomElementRegistry? customElementRegistry;
DOMString is;
};

Expand Down Expand Up @@ -5847,7 +5847,8 @@ method steps are to return the result of running the
dictionary <var>options</var> and a <a for=/>document</a> <var>document</var>:

<ol>
<li><p>Let <var>registry</var> be null.
<li><p>Let <var>registry</var> be the result of <a for=/>looking up a custom element registry</a>
given <var>document</var>.

<li><p>Let <var>is</var> be null.

Expand All @@ -5858,9 +5859,10 @@ dictionary <var>options</var> and a <a for=/>document</a> <var>document</var>:
<li><p>If <var>options</var>["{{ElementCreationOptions/customElementRegistry}}"]
<a for=map>exists</a>, then set <var>registry</var> to it.

<li><p>If <var>registry</var>'s <a for=CustomElementRegistry>is scoped</a> is false and
<var>registry</var> is not <var>document</var>'s <a for=Document>custom element registry</a>,
then <a>throw</a> a "{{NotSupportedError!!exception}}" {{DOMException}}.
<li><p>If <var>registry</var> is non-null, and <var>registry</var>'s
<a for=CustomElementRegistry>is scoped</a> is false, and <var>registry</var> is not
<var>document</var>'s <a for=Document>custom element registry</a>, then <a>throw</a> a
"{{NotSupportedError!!exception}}" {{DOMException}}.

<li><p>If <var>options</var>["{{ElementCreationOptions/is}}"] <a for=map>exists</a>, then set
<var>is</var> to it.
Expand All @@ -5869,9 +5871,6 @@ dictionary <var>options</var> and a <a for=/>document</a> <var>document</var>:
"{{NotSupportedError!!exception}}" {{DOMException}}.
</ol>

<li><p>If <var>registry</var> is null, then set <var>registry</var> to the result of
<a for=/>looking up a custom element registry</a> given <var>document</var>.

<li><p>Return <var>registry</var> and <var>is</var>.
</ol>

Expand Down Expand Up @@ -6672,7 +6671,7 @@ dictionary ShadowRootInit {
SlotAssignmentMode slotAssignment = "named";
boolean clonable = false;
boolean serializable = false;
CustomElementRegistry? customElementRegistry = null;
CustomElementRegistry? customElementRegistry;
};
</pre>

Expand Down Expand Up @@ -7604,17 +7603,13 @@ are:
<li><p>Let <var>registry</var> be <a>this</a>'s <a>node document</a>'s
<a for=Document>custom element registry</a>.

<li>
<p>If <var>init</var>["{{ShadowRootInit/customElementRegistry}}"] is non-null:
<li><p>If <var>init</var>["{{ShadowRootInit/customElementRegistry}}"] <a for=map>exists</a>, then
set <var>registry</var> to it.

<ol>
<li><p>Set <var>registry</var> to <var>init</var>["{{ShadowRootInit/customElementRegistry}}"].

<li><p>If <var>registry</var>'s <a for=CustomElementRegistry>is scoped</a> is false and
<var>registry</var> is not <a>this</a>'s <a>node document</a>'s
<a for=Document>custom element registry</a>, then <a>throw</a> a
"{{NotSupportedError!!exception}}" {{DOMException}}.
</ol>
<li><p>If <var>registry</var> is non-null, and <var>registry</var>'s
<a for=CustomElementRegistry>is scoped</a> is false, and <var>registry</var> is not <a>this</a>'s
<a>node document</a>'s <a for=Document>custom element registry</a>, then <a>throw</a> a
"{{NotSupportedError!!exception}}" {{DOMException}}.

<li><p>Run <a>attach a shadow root</a> with <a>this</a>,
<var>init</var>["{{ShadowRootInit/mode}}"], <var>init</var>["{{ShadowRootInit/clonable}}"],
Expand Down