Skip to content

Commit e21adb3

Browse files
[html-events] Clarify context captured by iframe navigations
1 parent 6b8f84b commit e21adb3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

web-integration/html__events.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ When [processing the `iframe` attributes](https://html.spec.whatwg.org/#process-
4949
> [!WARNING]
5050
Firefox fires an unspecified `error` event fired: it should be fired in the same context as the `load` event would.
5151

52-
Note that the captured context is not used for events fired inside the `iframe` as a consequence of the navigation.
52+
Note that the captured context is not used for events fired inside the `iframe` as a consequence of the navigation, and no context is captured by navigations caused inside the `iframe`.
5353

5454
> [!NOTE]
5555
> **QUESTION:** Does this actually work? The `load` event is fired for all navigations inside the `iframe`, regardless of how they are triggered (e.g. also if inside the iframe it does `location.href = ...`). Can we distinguish what caused the iframe to navigate when the event is fired?
@@ -60,6 +60,7 @@ When [processing the `frame` attributes](https://html.spec.whatwg.org/#process-t
6060
- use that context to fire the `load` event on the `frame` element
6161

6262
As with `iframe`, the captured context is not used for any event fired *inside* the framed document.
63+
6364
### 4.8.6 - The `embed` element
6465
When an `embed` element [becomes potentially active](https://html.spec.whatwg.org/#concept-embed-active) while there is JavaScript on the stack, or it has it's `src`/`type` attributes set/changed/removed, the user agent must:
6566
- synchronously capture the current AsyncContext, and store it on the `embed` element (and *not* asynchronously in the [`embed` element setup steps](https://html.spec.whatwg.org/#the-embed-element-setup-steps))

0 commit comments

Comments
 (0)