Skip to content

Commit 2ae50c6

Browse files
authored
Fix regression in iframe/frame loading
Closes #6168. This was due to a boolean logic error in the refactoring performed in f283972.
1 parent 0666f4e commit 2ae50c6

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

source

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30199,12 +30199,15 @@ interface <dfn>HTMLIFrameElement</dfn> : <span>HTMLElement</span> {
3019930199
</ol>
3020030200
</li>
3020130201

30202-
<li><p>Otherwise, if <var>initialInsertion</var> is false, run the <span>otherwise steps for
30203-
<code>iframe</code> or <code>frame</code> elements</span> given <var>element</var>.</p></li>
30202+
<li><p>Otherwise, if <var>element</var> has a <code data-x="attr-iframe-src">src</code> attribute
30203+
specified, or <var>initialInsertion</var> is false, then run the <span>shared attribute
30204+
processing steps for <code>iframe</code> and <code>frame</code> elements</span> given
30205+
<var>element</var>.</p></li>
3020430206
</ol>
3020530207

30206-
<p>The <dfn>otherwise steps for <code>iframe</code> or <code>frame</code> elements</dfn>, given an
30207-
element <var>element</var>, are:</p>
30208+
<p id="otherwise-steps-for-iframe-or-frame-elements">The <dfn>shared attribute processing steps
30209+
for <code>iframe</code> and <code>frame</code> elements</dfn>, given an element
30210+
<var>element</var>, are:</p>
3020830211

3020930212
<ol>
3021030213
<li>
@@ -118673,10 +118676,10 @@ interface <dfn>HTMLFrameSetElement</dfn> : <span>HTMLElement</span> {
118673118676
data-x="process-frame-initial-insertion"><var>initialInsertion</var></dfn>:</p>
118674118677

118675118678
<ol>
118676-
<li><p>If <var>initialInsertion</var> is true, then do nothing.</p></li>
118677-
118678-
<li><p>Otherwise, run the <span>otherwise steps for <code>iframe</code> or <code>frame</code>
118679-
elements</span> given <var>element</var>.</p></li>
118679+
<li><p>If <var>element</var> has a <code undefined data-x="attr-frame-src">src</code> attribute
118680+
specified, or <var>initialInsertion</var> is false, then run the <span>shared attribute
118681+
processing steps for <code>iframe</code> and <code>frame</code> elements</span> given
118682+
<var>element</var>.</p></li>
118680118683
</ol>
118681118684

118682118685
<p>The <code>frame</code> element <span>potentially delays the load event</span>.</p>

0 commit comments

Comments
 (0)