Re: [whatwg/dom] Enforce same parameters for attachShadow on declarative shadow root (PR #1246)

@petervanderbeken commented on this pull request.



> @@ -6958,8 +6960,20 @@ a boolean <var>delegatesFocus</var>, and a boolean <var>slotAssignment</var>:
   <p>If <var>element</var> is a <a for=Element>shadow host</a>, then:
 
   <ol>
-   <li><p>If <var>element</var>'s <a for=Element>shadow root</a>'s <a for=ShadowRoot>declarative</a>
-   is false, then <a>throw</a> an "{{NotSupportedError!!exception}}" {{DOMException}}.
+   <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><var>currentShadowRoot</var>'s <a for=ShadowRoot>mode</a> does not match
+     <var>mode</var>, or

Is there something missing here, or should the trailing _or_ be removed?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1246#pullrequestreview-1874938537
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/pull/1246/review/1874938537@github.com>

Received on Monday, 12 February 2024 10:31:37 UTC