Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mfreed7 committed Jan 29, 2024
1 parent 13198db commit 1c63c4f
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -6933,6 +6933,10 @@ are:
<a for=/>element</a> <var>element</var>, a string <var>mode</var>, a boolean <var>clonable</var>,
a boolean <var>delegatesFocus</var>, and a boolean <var>slotAssignment</var>:

<!-- Any new parameters added to <a>attach a shadow root</a> should be
added to the list of parameter-match tests under "If one of the
following is true" below. -->

<ol>
<li><p>If <var>element</var>'s <a for=Element>namespace</a> is not the <a>HTML namespace</a>,
then <a>throw</a> a "{{NotSupportedError!!exception}}" {{DOMException}}.
Expand Down Expand Up @@ -6963,28 +6967,26 @@ a boolean <var>delegatesFocus</var>, and a boolean <var>slotAssignment</var>:
<li><p>Let <var>currentShadowRoot</var> be <var>element</var>'s
<a for=Element>shadow root</a>.

<li><p>If one of the following is true:

<ul>
<li><p><var>currentShadowRoot</var>'s <a for=ShadowRoot>declarative</a> is false,
<li>
<p>If one of the following is true:

<li><p><var>currentShadowRoot</var>'s <a for=ShadowRoot>mode</a> does not match
<var>mode</var>,
<ul>
<li><p><var>currentShadowRoot</var>'s <a for=ShadowRoot>declarative</a> is false,

<li><p><var>currentShadowRoot</var>'s <a for=ShadowRoot>delegates focus</a> does
not match <var>delegatesFocus</var>,
<li><p><var>currentShadowRoot</var>'s <a for=ShadowRoot>mode</a> does not match
<var>mode</var>,

<li><p><var>currentShadowRoot</var>'s <a for=ShadowRoot>slot assignment</a> does
not match <var>slotAssignment</var>,
<li><p><var>currentShadowRoot</var>'s <a for=ShadowRoot>delegates focus</a> does
not match <var>delegatesFocus</var>,

<li><p><var>currentShadowRoot</var>'s <a for=ShadowRoot>clonable</a> does
not match <var>clonable</var>,
</ul>
<li><p><var>currentShadowRoot</var>'s <a for=ShadowRoot>slot assignment</a> does
not match <var>slotAssignment</var>, or

<p>then <a>throw</a> a "{{NotSupportedError!!exception}}" {{DOMException}}.
<li><p><var>currentShadowRoot</var>'s <a for=ShadowRoot>clonable</a> does
not match <var>clonable</var>,
</ul>

<p class=note>Any new parameters added to <a>attach a shadow root</a> should be
added to the list of tests above.
<p>then <a>throw</a> a "{{NotSupportedError!!exception}}" {{DOMException}}.

<li>
<p>Otherwise:
Expand Down

0 comments on commit 1c63c4f

Please sign in to comment.