Re: [whatwg/dom] Add new mutation observer init options elementByAttributeFilter and elementFilter (#885)

@AndrewRot commented on this pull request.



> +      <p>If none of the following are true
+
+      <ul class=brief>
+       <li><var>options</var>'s {{MutationObserverInit/elementFilter}} is present, and the
+       <a>node</a>'s <var>localName</var> is in {{MutationObserverInit/elementFilter}}
+
+       <li><var>options</var>'s {{MutationObserverInit/elementByAttributeFilter}} is present, and
+       <var>options</var>'s {{MutationObserverInit/elementByAttributeFilter}} contains any of the
+       attribute names in <var>nodeAttributesList</var>
+      </ul>
+
+      <p>then <a for=list>append</a> <var>node</var> to <var>filterRemovedNodes</var>.
+    </ol>
+
+   <li><p>Assert: either <var>filteredAddedNodes</var> or <var>filteredRemovedNodes</var>
+   <a for=set>is not empty</a>.

Both of these are now defined in scope. Check if filteredAddedNodes length > 0 or filteredRemovedNodes length > 0.

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

Message ID: <whatwg/dom/pull/885/review/1219769636@github.com>

Received on Thursday, 15 December 2022 18:45:16 UTC