Re: [whatwg/dom] Event Listener Execution Order for Same Event Is Undefined (#415)

@domenic
```
function inner_invoke(listeners) {
    while (listeners.length > 0) {
        let listener = listeners.pop(); // reversed order
    }
}
function invoke() {
    let listeners = object.get_listener_array(); // naturally, in definition order
    inner_invoke(listeners);
}
```

There's seemingly nothing in the spec that says `listeners.reverse()` has to be called in `inner_invoke`.

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

Received on Thursday, 23 February 2017 02:36:39 UTC