@@ -74168,14 +74168,17 @@ END:VCARD</pre>
7416874168 <li><p>If <var>target</var>'s <span>active sandboxing flag set</span> has the
7416974169 <span>sandboxed automatic features browsing context flag</span>, then return.</p></li>
7417074170
74171+ <li><p><span data-x="list iterate">For each</span> <var>ancestorBC</var> of <var>target</var>'s
74172+ <span data-x="concept-document-bc">browsing context</span>'s <span data-x="ancestor browsing
74173+ context">ancestor browsing contexts</span>: if <var>ancestorBC</var>'s <span>active
74174+ document</span>'s <span data-x="concept-document-origin">origin</span> is not <span>same
74175+ origin</span> with <var>target</var>'s <span data-x="concept-document-origin">origin</span>, then
74176+ return.</p></li>
74177+
7417174178 <li><p>Let <var>topDocument</var> be the <span>active document</span> of <var>target</var>'s
7417274179 <span data-x="concept-document-bc">browsing context</span>'s
7417374180 <span>top-level browsing context</span>.</p></li>
7417474181
74175- <li><p>If <var>target</var>'s <span data-x="concept-document-origin">origin</span> is not the
74176- <span data-x="same origin">same</span> as the <span
74177- data-x="concept-document-origin">origin</span> of <var>topDocument</var>, then return.</p></li>
74178-
7417974182 <li><p>If <var>topDocument</var>'s <span>autofocus processed flag</span> is false, then
7418074183 <span data-x="list remove">remove</span> the element from <var>topDocument</var>'s
7418174184 <span>autofocus candidates</span>, and <span data-x="list append">append</span> the element to
@@ -74201,9 +74204,8 @@ END:VCARD</pre>
7420174204
7420274205 <li>
7420374206 <p>If <var>topDocument</var>'s <span data-x="focused area of the document">focused area</span>
74204- is not <var>topDocument</var> itself, or <var>topDocument</var>'s
74205- <span data-x="concept-document-url">URL</span>'s
74206- <span data-x="concept-url-fragment">fragment</span> is not empty, then:</p>
74207+ is not <var>topDocument</var> itself, or <var>topDocument</var> has non-null
74208+ <span>target element</span>, then:</p>
7420774209
7420874210 <ol>
7420974211 <li><p><span data-x="list empty">Empty</span> <var>candidates</var>.</p></li>
@@ -74249,9 +74251,8 @@ END:VCARD</pre>
7424974251 <var>doc</var>'s <span data-x="concept-document-bc">browsing context</span>'s
7425074252 <span data-x="ancestor browsing context">ancestor browsing contexts</span>.</p></li>
7425174253
74252- <li><p>If <span data-x="concept-document-url">URL</span>'s
74253- <span data-x="concept-url-fragment">fragment</span> of any <code>Document</code> in
74254- <var>inclusiveAncestorDocuments</var> is not empty, then <span>continue</span>.</p></li>
74254+ <li><p>If any <code>Document</code> in <var>inclusiveAncestorDocuments</var> has non-null
74255+ <span>target element</span>, then <span>continue</span>.</p></li>
7425574256
7425674257 <li><p>Let <var>target</var> be <var>element</var>.</p></li>
7425774258
0 commit comments