Skip to content

Commit 532ba9d

Browse files
committed
#3836 is (almost) resolved
1 parent 704c063 commit 532ba9d

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

html/webappapis/dynamic-markup-insertion/opening-the-input-stream/event-listeners.window.js

+6-8
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ test(t => {
3131
frame.contentWindow.addEventListener("focus", t.unreached_func("window event listener not removed"));
3232
body.onfocus = t.unreached_func("body event listener not removed");
3333
frame.contentDocument.open();
34-
// Pending resolution from https://github.com/whatwg/html/issues/3836.
35-
// assert_equals(body.onfocus, null);
34+
assert_equals(body.onfocus, null);
3635
frame.contentWindow.focus();
3736
frame.contentDocument.close();
3837
}, "Standard event listeners are to be removed from Window");
@@ -53,13 +52,12 @@ test(t => {
5352
const div = body.appendChild(frame.contentDocument.createElement("div"));
5453
div.onclick = t.unreached_func("element event listener not removed");
5554
frame.contentDocument.open();
56-
// Pending resolution from https://github.com/whatwg/html/issues/3836.
57-
// assert_equals(div.onclick, null);
55+
assert_equals(div.onclick, null);
5856
const e = frame.contentDocument.createEvent("mouseevents")
5957
e.initEvent("click", false, false);
6058
div.dispatchEvent(e);
6159
frame.contentDocument.close();
62-
}, "IDL attribute event handlers are to be removed");
60+
}, "IDL attribute event handlers are to be deactivated");
6361

6462
test(t => {
6563
const frame = document.body.appendChild(document.createElement("iframe")),
@@ -69,13 +67,13 @@ test(t => {
6967
div.setAttribute("onclick", "throw new Error('element event listener not removed')");
7068
assert_not_equals(div.onclick, null);
7169
frame.contentDocument.open();
72-
// Pending resolution from https://github.com/whatwg/html/issues/3836.
73-
// assert_equals(div.onclick, null);
70+
assert_equals(div.getAttribute("onclick"), "throw new Error('element event listener not removed')");
71+
assert_equals(div.onclick, null);
7472
const e = frame.contentDocument.createEvent("mouseevents")
7573
e.initEvent("click", false, false);
7674
div.dispatchEvent(e);
7775
frame.contentDocument.close();
78-
}, "Content attribute event handlers are to be removed");
76+
}, "Content attribute event handlers are to be deactivated");
7977

8078
test(t => {
8179
const frame = document.body.appendChild(document.createElement("iframe"));

0 commit comments

Comments
 (0)