Skip to content

Commit

Permalink
Fire the load event for portals
Browse files Browse the repository at this point in the history
Part of #26.
  • Loading branch information
domenic committed May 20, 2020
1 parent f62ead1 commit 97049b4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ spec: html; urlPrefix: https://html.spec.whatwg.org/multipage/
text: becomes browsing-context disconnected; url: becomes-browsing-context-disconnected
urlPrefix: origin.html
text: origin; url: concept-origin
urlPrefix: parsing.html
text: completely loaded; url: completely-loaded
urlPrefix: urls-and-fetching.html
text: parse a URL; url: parse-a-url
text: resulting URL record; url: resulting-url-record
Expand Down Expand Up @@ -608,6 +610,19 @@ spec:url; type:dfn; text:scheme
[=nested browsing context=].
</div>

Whenever a {{Document}} object |document| whose [=Document/browsing context=] is a
[=portal browsing context=] is marked as [=completely loaded=], run the following steps:

1. Let |element| be |document|'s [=Document/browsing context=]'s [=host element=].

1. [=Queue an element task=] on the [=networking task source=] with |element| to [=fire an event=]
named {{HTMLElement/load!!event}} at |element|.

<wpt>
portal-onload-event.html
portals-cross-origin-load.sub.html
</wpt>

The following events are dispatched on {{HTMLPortalElement}} objects:

<table class="data" dfn-for="HTMLPortalElement">
Expand Down

0 comments on commit 97049b4

Please sign in to comment.