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

@AndrewRot commented on this pull request.



> @@ -3594,6 +3625,60 @@ run these steps:
 <ol>
  <li><p>Assert: either <var>addedNodes</var> or <var>removedNodes</var> <a for=set>is not empty</a>.
 
+ <li><p>If either <var>options</var>'s' {{MutationObserverInit/elementLocalNameFilter}} or
+ {{MutationObserverInit/elementHasAttributeNameFilter}} is present, then:
+
+ <ol>
+  <li><p>Let <var>nodeAttributesList</var> be <var>nodeAttributesList</var> of the node's attributes, "<code>node.getAttributeNames()</code>".

Is this correct? Later it is used to check if node's attributes contains any attributes from the `elementFilterByAttribute` list. If `nodeAttributesList` is only the local name of the node, it cannot filter properly. Maybe I'm mistaken?

https://github.com/whatwg/dom/pull/885/files/7eb45a14fff8de0268e64bd2787b8d7f08357c69#diff-a467e681501e456ce8c1ef31425e1b41R3651


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

Received on Monday, 17 August 2020 16:27:57 UTC