diff --git a/dom.bs b/dom.bs index a0b1412c5..9bee4d896 100644 --- a/dom.bs +++ b/dom.bs @@ -3320,7 +3320,7 @@ dictionary MutationObserverInit { boolean attributeOldValue; boolean characterDataOldValue; sequence<DOMString> attributeFilter; - sequence<DOMString> elementHasAttributeNameFilter; + sequence<DOMString> elementFilterByAttribute; sequence<DOMString> elementLocalNameFilter; }; @@ -3401,7 +3401,7 @@ dictionary MutationObserverInit { observed and {{MutationObserverInit/attributes}} is true or omitted. -
{{MutationObserverInit/elementHasAttributeNameFilter}} +
{{MutationObserverInit/elementFilterByAttribute}}
Set to a list of attribute local names (without namespace) to observe changes to the presence of an elements attributes. @@ -3452,7 +3452,7 @@ method, when invoked, must run these steps: options's {{MutationObserverInit/characterData}} is omitted, then set options's {{MutationObserverInit/characterData}} to true. -
  • If options's {{MutationObserverInit/elementHasAttributeNameFilter}} is present and +

  • If options's {{MutationObserverInit/elementFilterByAttribute}} is present and options's {{MutationObserverInit/childList}} is omitted, then set options's {{MutationObserverInit/childList}} to true. @@ -3476,7 +3476,7 @@ method, when invoked, must run these steps: options's {{MutationObserverInit/characterData}} is false, then throw a TypeError. -

  • If options's {{MutationObserverInit/elementHasAttributeNameFilter}} is present and +

  • If options's {{MutationObserverInit/elementFilterByAttribute}} is present and options's {{MutationObserverInit/childList}} is false, then throw a TypeError. @@ -3626,7 +3626,7 @@ run these steps:

  • Assert: either addedNodes or removedNodes is not empty.

  • If either options's' {{MutationObserverInit/elementLocalNameFilter}} or - {{MutationObserverInit/elementHasAttributeNameFilter}} is present, then: + {{MutationObserverInit/elementFilterByAttribute}} is present, then:

    1. Let nodeAttributesList be nodeAttributesList of the node's attributes, "node.getAttributeNames()". @@ -3646,8 +3646,8 @@ run these steps: {{MutationObserverInit/elementLocalNameFilter}} is present, and "node.localName" is in {{MutationObserverInit/elementLocalNameFilter}} -

    2. options's {{MutationObserverInit/elementHasAttributeNameFilter}} is - present, and options's {{MutationObserverInit/elementHasAttributeNameFilter}} +
    3. options's {{MutationObserverInit/elementFilterByAttribute}} is + present, and options's {{MutationObserverInit/elementFilterByAttribute}} contains any of the attribute name in nodeAttributesList

      then: @@ -3663,8 +3663,8 @@ run these steps: {{MutationObserverInit/elementLocalNameFilter}} is present, and "node.localName" is in {{MutationObserverInit/elementLocalNameFilter}}

    4. if options's - {{MutationObserverInit/elementHasAttributeNameFilter}} is present,and options's - {{MutationObserverInit/elementHasAttributeNameFilter}} contains any of the attribute names + {{MutationObserverInit/elementFilterByAttribute}} is present,and options's + {{MutationObserverInit/elementFilterByAttribute}} contains any of the attribute names in nodeAttributesList

      then: