- From: Anne van Kesteren <notifications@github.com>
- Date: Wed, 11 Oct 2023 03:13:43 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 11 October 2023 10:13:49 UTC
@annevk commented on this pull request.
> @@ -908,9 +908,14 @@ for historical reasons.
<h3 id=interface-eventtarget>Interface {{EventTarget}}</h3>
<pre class=idl>
+[Exposed=*]
+interface EventTargetInternals {
+ attribute EventTarget parent;
+};
+
Yeah, I suppose we could also do what `new Promise()` does, but it doesn't seem as extensible:
```js
new EventTarget(setParent => {
setParent(someParent);
}
```
I think as long as the capability is only granted to whoever constructed the `EventTarget` object I'm okay, so alternative proposals welcome.
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1230#discussion_r1354620191
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/dom/pull/1230/review/1670683020@github.com>
Received on Wednesday, 11 October 2023 10:13:49 UTC