You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<b>type</b> is <code>change</code>, <b>callback</b> is <var title="">listener</var>, and
748
-
<b>capture</b> is false.
749
-
</ol>
744
+
1. Remove an <a>event listener</a> from the associated list of <a>event listeners</a>,
745
+
whose <b>type</b> is <code>change</code>,
746
+
<b>callback</b> is <var>listener</var>,
747
+
and <b>capture</b> is false.
750
748
751
-
<p class=note>This specification initially had a custom callback mechanism with <code title=dom-MediaQueryList-addListener>addListener</code> and
752
-
<code title=dom-MediaQueryList-removeListener>removeListener</code>, and the callback was invoked with the associated media query list as argument.
749
+
Note: This specification initially had a custom callback mechanism with {{addListener()}} and
750
+
{{removeListener()}}, and the callback was invoked with the associated media query list as argument.
753
751
Now the normal event mechanism is used instead.
754
-
For backwards compatibility, the <code title=dom-MediaQueryList-addListener>addListener</code> and <code title=dom-MediaQueryList-removeListener>removeListener</code> methods
755
-
are basically aliases for <code data-anolis-spec=dom title=dom-EventTarget-addEventListener>addEventListener</code> and <code data-anolis-spec=dom title=dom-EventTarget-removeEventListener>removeEventListener</code>, respectively,
752
+
For backwards compatibility, the {{addListener()}} and {{removeListener()}} methods
753
+
are basically aliases for {{addEventListener()}} and {{removeEventListener()}}, respectively,
756
754
and the <code>change</code> event masquerades as a {{MediaQueryList}}.
757
755
758
-
The following are the <span data-anolis-spec=html>event handlers</span>
759
-
(and their corresponding <span data-anolis-spec=html title="event handler event type">event handler event types</span>) that must be supported,
760
-
as <span data-anolis-spec=html>event handler IDL attributes</span>, by all objects implementing the {{MediaQueryList}} interface:
756
+
The following are the <a>event handlers</a>
757
+
(and their corresponding <a>event handler event types</a>) that must be supported,
758
+
as <a>event handler IDL attributes</a>, by all objects implementing the {{MediaQueryList}} interface:
0 commit comments