[whatwg/dom] Event.composedPath() inconsistency between implementors. (Issue #1201)

For code

```js
const target = new EventTarget()
target.addEventListener('change', (event) => {
    console.log(event.composedPath())
}, { once: true })
const event = new Event('change')
target.dispatchEvent(event)
```

Chrome and Safari prints `[]`, Firefox prints `[target]`

https://dom.spec.whatwg.org/#dom-event-composedpath

Per spec, it looks like Firefox is correct.

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

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

Received on Monday, 22 May 2023 12:26:55 UTC