|
@@ -254,6 +254,10 @@ void EventTarget::remove_from_event_listener_list(DOMEventListener& listener)
|
|
|
if (!m_data)
|
|
|
return;
|
|
|
m_data->event_listener_list.remove_first_matching([&](auto& entry) { return entry.ptr() == &listener; });
|
|
|
+
|
|
|
+ // FIXME: Update this when the spec is updated.
|
|
|
+ // Spec bug: https://github.com/whatwg/dom/issues/1323
|
|
|
+ listener.removed = true;
|
|
|
}
|
|
|
|
|
|
// https://dom.spec.whatwg.org/#dom-eventtarget-dispatchevent
|