Skip to content

Commit 16de123

Browse files
committed
Make <frame> fire load synchronously with "completely loaded"
This makes it more consistent with <iframe> and fixes an inconsistency introduced in a703b0f. Fixes #3492.
1 parent 41dac2f commit 16de123

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

source

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -113968,22 +113968,17 @@ interface <dfn>HTMLFrameSetElement</dfn> : <span>HTMLElement</span> {
113968113968
first appropriate steps from the following list:</p>
113969113969

113970113970
<dl class="switch">
113971+
<dt>If the element has no <code undefined data-x="attr-frame-src">src</code> attribute specified,
113972+
and the user agent is processing the <code>frame</code>'s attributes for the first time</dt>
113971113973

113972-
<dt>If the element has no <code undefined data-x="attr-frame-src">src</code> attribute specified, and the
113973-
user agent is processing the <code>frame</code>'s attributes for the first time</dt>
113974-
113975-
<dd>
113976-
113977-
<p><span>Queue a task</span> to <span data-x="concept-event-fire">fire an event</span>
113978-
named <code data-x="event-load">load</code> at the <code>frame</code> element.</p>
113979-
113980-
</dd>
113974+
<dd><p><span>Queue a task</span> to <span data-x="concept-event-fire">fire an event</span> named
113975+
<code data-x="event-load">load</code> at the <code>frame</code> element using the <span>DOM
113976+
manipulation task source</span>.</p></dd>
113981113977

113982113978
<dt>Otherwise</dt>
113983113979

113984113980
<dd><p>Run the <span>otherwise steps for <code>iframe</code> or <code>frame</code>
113985113981
elements</span>.</p></dd>
113986-
113987113982
</dl>
113988113983

113989113984
<p>Any <span data-x="navigate">navigation</span> required of the user agent in the <span>process
@@ -114007,12 +114002,8 @@ interface <dfn>HTMLFrameSetElement</dfn> : <span>HTMLElement</span> {
114007114002
<!-- next few paragraphs are also from <iframe> but less detailed -->
114008114003

114009114004
<p>When a <code>Document</code> in a <code>frame</code> is marked as <span>completely
114010-
loaded</span>, the user agent must <span>queue a task</span> to <span
114011-
data-x="concept-event-fire">fire an event</span> named <code data-x="event-load">load</code> at
114012-
the <code>frame</code> element.</p>
114013-
114014-
<p>The <span>task source</span> for the <span data-x="concept-task">tasks</span> above is the
114015-
<span>DOM manipulation task source</span>.</p>
114005+
loaded</span>, the user agent must <span data-x="concept-event-fire">fire an event</span> named
114006+
<code data-x="event-load">load</code> at the <code>frame</code> element.</p>
114016114007

114017114008
<p>When a <code>frame</code> element has a non-null <span>nested browsing context</span>, and its
114018114009
<span>nested browsing context</span>'s <span>active document</span> is not <span>ready for

0 commit comments

Comments
 (0)