Skip to content

Commit 26a587c

Browse files
committed
Addressed annevk's comments
1 parent 4856d8a commit 26a587c

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

dom.bs

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5886,6 +5886,7 @@ dictionary ShadowRootInit {
58865886

58875887
dictionary GetInnerHTMLOptions {
58885888
boolean includeShadowRoots = true;
5889+
sequence<ShadowRoot> closedRoots;
58895890
};
58905891
</pre>
58915892

@@ -6722,7 +6723,7 @@ invoked, must run these steps:
67226723
steps:
67236724

67246725
<ol>
6725-
<li><p>Let <var>shadow</var> be <var>shadow host</var>'s <a for=Element>shadow root</a>.
6726+
<li><p>Let <var>shadow</var> be <a>this</a>'s <a for=Element>shadow root</a>.
67266727

67276728
<li><p>If <var>shadow</var> is null or its <a for=ShadowRoot>mode</a> is "<code>closed</code>",
67286729
then return null.</p></li>
@@ -6734,10 +6735,10 @@ steps:
67346735
<var>shadow host</var>, <var>mode</var>, and <var>delegates focus</var>, run these steps:</p>
67356736

67366737
<ol>
6737-
<li><p>If <a>this</a>'s <a for=Element>namespace</a> is <em>not</em> the <a>HTML namespace</a>,
6738+
<li><p>If <var>shadow host</var>'s <a for=Element>namespace</a> is <em>not</em> the <a>HTML namespace</a>,
67386739
then <a>throw</a> a "{{NotSupportedError!!exception}}" {{DOMException}}.
67396740

6740-
<li><p>If <a>this</a>'s <a for=Element>local name</a> is <em>not</em> a
6741+
<li><p>If <var>shadow host</var>'s <a for=Element>local name</a> is <em>not</em> a
67416742

67426743
<ul class=brief>
67436744
<li>a <a>valid custom element name</a>
@@ -6765,13 +6766,13 @@ steps:
67656766
</li>
67666767

67676768
<li>
6768-
<p>If <a>this</a>'s <a for=Element>local name</a> is a <a>valid custom element name</a>, or
6769-
<a>this</a>'s <a for=Element><code>is</code> value</a> is not null, then:
6769+
<p>If <var>shadow host</var>'s <a for=Element>local name</a> is a <a>valid custom element name</a>, or
6770+
<var>shadow host</var>'s <a for=Element><code>is</code> value</a> is not null, then:
67706771

67716772
<ol>
67726773
<li><p>Let <var>definition</var> be the result of
67736774
<a lt="look up a custom element definition">looking up a custom element definition</a> given
6774-
<a>this</a>'s <a for=Node>node document</a>, its <a for=Element>namespace</a>, its
6775+
<var>shadow host</var>'s <a for=Node>node document</a>, its <a for=Element>namespace</a>, its
67756776
<a for=Element>local name</a>, and its <a for=Element><code>is</code> value</a>.
67766777

67776778
<li><p>If <var>definition</var> is not null and <var>definition</var>'s
@@ -6780,26 +6781,27 @@ steps:
67806781
</ol>
67816782
</li>
67826783

6783-
<li><p>If <a>this</a> has a non-null <a for=/>shadow root</a> whose
6784-
<a for=ShadowRoot>is declarative shadow root</a> property is false, then <a>throw</a> an
6785-
"{{NotSupportedError!!exception}}" {{DOMException}}.
6784+
<li><p>If <var>shadow host</var> has a non-null <a for=/>shadow root</a>, then:
6785+
<ol>
6786+
<li><p>If <var>shadow host</var>'s <a for=/>shadow root</a>'s <a for=ShadowRoot>is declarative
6787+
shadow root</a> property is false, then <a>throw</a> an "{{NotSupportedError!!exception}}" {{DOMException}}.
67866788

6787-
<li><p>If <a>this</a> has a non-null <a for=/>shadow root</a> whose
6788-
<a for=ShadowRoot>is declarative shadow root</a> property is true, then <a for=/>remove</a> all of
6789-
<a for=/>shadow root</a>'s <a>children</a>, in <a>tree order</a>. Return <var>shadow host</var>'s <a for=/>shadow root</a>.
6789+
<li><p>Otherwise, <a for=/>remove</a> all of <a for=/>shadow root</a>'s <a>children</a>, in
6790+
<a>tree order</a>. Return <var>shadow host</var>'s <a for=/>shadow root</a>.
67906791

6791-
<p class="note">This means that if multiple declarative shadow roots are contained within a single shadow host,
6792-
only the last one will remain.
6792+
<p class="note">This means that if multiple declarative shadow roots are contained within a single shadow host,
6793+
only the last one will remain.
6794+
</ol>
67936795

67946796
<li><p>Let <var>shadow</var> be a new <a for=/>shadow root</a> whose <a for=Node>node document</a>
6795-
is <a>this</a>'s <a for=Node>node document</a>, <a for=DocumentFragment>host</a> is <var>shadow host</var>,
6797+
is <var>shadow host</var>'s <a for=Node>node document</a>, <a for=DocumentFragment>host</a> is <var>shadow host</var>,
67966798
and <a for=ShadowRoot>mode</a> is <var>mode</var>.
67976799

67986800
<li><p>Set <var>shadow</var>'s <a for=ShadowRoot>delegates focus</a> to <var>delegates focus</var>.
67996801

68006802
<li><p>Set <var>shadow</var>'s <a for=ShadowRoot>is declarative shadow root</a> property to false.
68016803

6802-
<li><p>Set <a>this</a>'s <a for=Element>shadow root</a> to <var>shadow</var>.
6804+
<li><p>Set <var>shadow host</var>'s <a for=Element>shadow root</a> to <var>shadow</var>.
68036805
</ol>
68046806

68056807
<hr>
@@ -6912,7 +6914,8 @@ for <a>this</a>.
69126914
<p>The
69136915
<dfn method for=Element><code>getInnerHTML(<var>options</var>)</code></dfn>
69146916
method, when invoked, must return the result of running <a>HTML fragment serialization algorithm</a>,
6915-
given <a>this</a> as <var>node</var> and <i>options.includeShadowRoots</i> as <i>include shadow roots</i>.
6917+
given <a>this</a> as <var>node</var>, <i>options.includeShadowRoots</i> as <i>include shadow roots</i>,
6918+
and <i>options.closedRoots</i> as <i>closed shadow roots</i>.
69166919

69176920
<p>The
69186921
<dfn method for=Element><code>insertAdjacentElement(<var>where</var>, <var>element</var>)</code></dfn>

0 commit comments

Comments
 (0)