Re: [whatwg/dom] Allow custom "get the parent" algorithms for EventTargets (#583)

I think that is probably a workable API (no need for null though, optional parent argument or dictionary with optional parent member seems fine), but we will also need to add loop detection in https://dom.spec.whatwg.org/#concept-event-dispatch. Perhaps that should lead to an exception? I think you can only ever reach it from `dispatchEvent()` so that should be okay.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/583#issuecomment-1752822164
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/583/1752822164@github.com>

Received on Monday, 9 October 2023 11:22:37 UTC