Skip to content

Commit ff56835

Browse files
annevkAlice Boxhall
authored and
Alice Boxhall
committed
Clarify document.open() event listener removal
Dependency in DOM: whatwg/dom#641. Tests: web-platform-tests/wpt#10686. Fixes whatwg#2302.
1 parent 913b8d6 commit ff56835

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source

+3-1
Original file line numberDiff line numberDiff line change
@@ -3186,6 +3186,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
31863186
<li><dfn data-x="dom-Event-initEvent" data-x-href="https://dom.spec.whatwg.org/#dom-event-initevent"><code>initEvent()</code></dfn> method</li>
31873187
<li><dfn data-x-href="https://dom.spec.whatwg.org/#add-an-event-listener">add an event listener</dfn></li>
31883188
<li><dfn data-x="dom-EventTarget-addEventListener" data-x-href="https://dom.spec.whatwg.org/#dom-eventtarget-addeventlistener"><code>addEventListener()</code></dfn> method</li>
3189+
<li><dfn data-x-href="https://dom.spec.whatwg.org/#remove-all-event-listeners">remove all event listeners</dfn></li>
31893190
<li><dfn data-x="dom-EventListener" data-x-href="https://dom.spec.whatwg.org/#callbackdef-eventlistener"><code>EventListener</code></dfn> callback interface</li>
31903191
<li>The <dfn data-x="concept-event-type" data-x-href="https://dom.spec.whatwg.org/#dom-event-type">type</dfn> of an event</li>
31913192
<li>An <dfn data-x-href="https://dom.spec.whatwg.org/#concept-event-listener">event listener</dfn> and its
@@ -90660,7 +90661,8 @@ document.body.appendChild(frame)</pre>
9066090661

9066190662
<li><p><span data-x="abort a document">Abort</span> <var>document</var>.</p></li>
9066290663

90663-
<li><p>Unregister all event listeners registered on <var>document</var> and its descendants.</p>
90664+
<li><p>For each <span>shadow-including inclusive descendant</span> <var>node</var> of
90665+
<var>document</var>, <span>remove all event listeners</span> with <var>node</var>.</p></li>
9066490666

9066590667
<li><p>Remove any <span data-x="concept-task">tasks</span> associated with <var>document</var> in
9066690668
any <span>task source</span>.</p></li>

0 commit comments

Comments
 (0)