[whatwg/dom] To investigate: do error events bubble to window? (#455)

@GeorgNeis found during some testing that error events on script elements (from fetch errors) do not bubble to the window.

This makes some sense, as window already has an error event with a different meaning.

DOM already blocks the bubbling of load events to window:

> A document’s get the parent algorithm, given an event, returns null if event’s type attribute value is "load" or document does not have a browsing context, and the document’s relevant global object otherwise. 

This issue is a reminder to myself to figure out what's going on here, and write a bunch of web platform tests. In particular it seems at least plausible that any of the following could be true:

- Something else was confusing the test results, and this is all a false alarm
- Bubbling is blocked based on the event's type being "error"
- Bubbling is blocked based on the event's type being "error" and its interface not being ErrorEvent
- Bubbling is blocked based on some of the above plus isTrusted being true
- "error" events on script elements don't bubble after all
- "error" events on a variety of elements don't bubble after all
- Bubbling gets blocked at some earlier stage, e.g. it never reaches body, or it never reaches document
- Capture also gets interfered with somehow

-- 
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/455

Received on Thursday, 4 May 2017 14:50:01 UTC