[whatwg/dom] What realm should be used for creating events from "fire an event" (#352)

Continuation of a discussion that started in #349. /cc @bzbarsky @Ms2ger.

A test at http://w3c-test.org/submissions/4088/html/semantics/forms/resetting-a-form/reset-form-event-realm.html reveals the following, assuming that reset()'s "fire an event" is representative in general:

- Chrome and Safari use the target's relevant Realm
- Firefox may use the target's relevant Realm; however, since it does the currently-nonstandard-but-oft-debated thing where adopting an element changes its relevant Realm, it's not interoperable with Chrome/Safari
- Edge coincidentally matches Firefox, but not for the same reasons. That is, it uses frames[1]'s realm in that test, but it does not have Gecko's adoption semantics, at least as far as I can tell by testing the prototypes (they were not swizzled). . Maybe it is going by the realm of the target's document?

I think maybe we should standardize on using target's relevant Realm, and then the fact that Gecko is not interoperable just ends up being part of the larger issue where Gecko has different adoption semantics. Thoughts welcome.

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

Received on Wednesday, 26 October 2016 20:36:56 UTC