[whatwg/dom] Event::ComposedPath doesn't handle `this.currentTarget == null` (Issue #1343)

### What is the issue with the DOM Standard?

Steps 4 and 5 of [Event::composedPath](https://dom.spec.whatwg.org/#dom-event-composedpath) say to
```
4. Let currentTarget be this’s currentTarget attribute value.
5. Append currentTarget to composedPath.
```
`composedPath` is a `sequence<EventTarget>`, but `currentTarget` is a `EventTarget?`, per the [Event idl interface](https://dom.spec.whatwg.org/#interface-event)

It is unclear to me what should happen when `currentTarget` is `null`.

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

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

Received on Friday, 20 December 2024 20:27:38 UTC