Skip to content

Commit

Permalink
chance elementHasAttributeNameFilter to elementFilterByAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
arottier committed Aug 13, 2020
1 parent ed122a9 commit e37b25c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -3320,7 +3320,7 @@ dictionary MutationObserverInit {
boolean attributeOldValue;
boolean characterDataOldValue;
sequence<DOMString> attributeFilter;
sequence<DOMString> elementHasAttributeNameFilter;
sequence<DOMString> elementFilterByAttribute;
sequence<DOMString> elementLocalNameFilter;
};
</pre>
Expand Down Expand Up @@ -3401,7 +3401,7 @@ dictionary MutationObserverInit {
observed and {{MutationObserverInit/attributes}} is true
or omitted.

<dt>{{MutationObserverInit/elementHasAttributeNameFilter}}
<dt>{{MutationObserverInit/elementFilterByAttribute}}
<dd>Set to a list of <a>attribute</a>
<a for=Attr>local names</a> (without <a for=Attr>namespace</a>) to observe changes
to the presence of an elements <a>attributes</a>.
Expand Down Expand Up @@ -3452,7 +3452,7 @@ method, when invoked, must run these steps:
<var>options</var>'s {{MutationObserverInit/characterData}} is omitted, then set
<var>options</var>'s {{MutationObserverInit/characterData}} to true.

<li><p>If <var>options</var>'s {{MutationObserverInit/elementHasAttributeNameFilter}} is present and
<li><p>If <var>options</var>'s {{MutationObserverInit/elementFilterByAttribute}} is present and
<var>options</var>'s {{MutationObserverInit/childList}} is omitted, then set
<var>options</var>'s {{MutationObserverInit/childList}} to true.

Expand All @@ -3476,7 +3476,7 @@ method, when invoked, must run these steps:
<var>options</var>'s {{MutationObserverInit/characterData}} is false, then <a>throw</a> a
<code>TypeError</code>.

<li><p>If <var>options</var>'s {{MutationObserverInit/elementHasAttributeNameFilter}} is present and
<li><p>If <var>options</var>'s {{MutationObserverInit/elementFilterByAttribute}} is present and
<var>options</var>'s {{MutationObserverInit/childList}} is false, then <a>throw</a> a
<code>TypeError</code>.

Expand Down Expand Up @@ -3626,7 +3626,7 @@ run these steps:
<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:
{{MutationObserverInit/elementFilterByAttribute}} is present, then:

<ol>
<li><p>Let <var>nodeAttributesList</var> be <var>nodeAttributesList</var> of the node's attributes, "<code>node.getAttributeNames()</code>".
Expand All @@ -3646,8 +3646,8 @@ run these steps:
{{MutationObserverInit/elementLocalNameFilter}} is present, and
"<code>node.localName</code>" is in {{MutationObserverInit/elementLocalNameFilter}}

<li><var>options</var>'s {{MutationObserverInit/elementHasAttributeNameFilter}} is
present, and <var>options</var>'s {{MutationObserverInit/elementHasAttributeNameFilter}}
<li><var>options</var>'s {{MutationObserverInit/elementFilterByAttribute}} is
present, and <var>options</var>'s {{MutationObserverInit/elementFilterByAttribute}}
contains any of the attribute name in <var>nodeAttributesList</var>
</ul>
<p>then:
Expand All @@ -3663,8 +3663,8 @@ run these steps:
{{MutationObserverInit/elementLocalNameFilter}} is present, and
"<code>node.localName</code>" is in {{MutationObserverInit/elementLocalNameFilter}}
<li>if <var>options</var>'s
{{MutationObserverInit/elementHasAttributeNameFilter}} is present,and <var>options</var>'s
{{MutationObserverInit/elementHasAttributeNameFilter}} contains any of the attribute names
{{MutationObserverInit/elementFilterByAttribute}} is present,and <var>options</var>'s
{{MutationObserverInit/elementFilterByAttribute}} contains any of the attribute names
in <var>nodeAttributesList</var>
</ul>
<p>then:
Expand Down

0 comments on commit e37b25c

Please sign in to comment.