Skip to content

Commit 8a5f57c

Browse files
committed
Editorial: lean on early return in attach a shadow root
1 parent 9596708 commit 8a5f57c

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

dom.bs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7912,17 +7912,12 @@ a boolean <var>serializable</var>, a boolean <var>delegatesFocus</var>, a string
79127912

79137913
<p>then <a>throw</a> a "{{NotSupportedError!!exception}}" {{DOMException}}.
79147914

7915-
<li>
7916-
<p>Otherwise:
7917-
7918-
<ol>
7919-
<li><p><a for=/>Remove</a> all of <var>currentShadowRoot</var>'s <a for=tree>children</a>, in
7920-
<a>tree order</a>.
7915+
<li><p><a for=/>Remove</a> all of <var>currentShadowRoot</var>'s <a for=tree>children</a>, in
7916+
<a>tree order</a>.
79217917

7922-
<li><p>Set <var>currentShadowRoot</var>'s <a for=ShadowRoot>declarative</a> to false.
7918+
<li><p>Set <var>currentShadowRoot</var>'s <a for=ShadowRoot>declarative</a> to false.
79237919

7924-
<li><p>Return.
7925-
</ol>
7920+
<li><p>Return.
79267921
</ol>
79277922

79287923
<li><p>Let <var>shadow</var> be the result of <a>creating a node</a> that implements

0 commit comments

Comments
 (0)