Skip to content

Commit

Permalink
Fix form connectedness check, but also warn about it
Browse files Browse the repository at this point in the history
whatwg#2708 (comment)
pointed out that this check was just broken, so this fixes it. But the
check is also under discussion in whatwg#2615 and whatwg#2708, pending compat data,
so this adds a warning in the meantime.
  • Loading branch information
domenic authored and Alice Boxhall committed Jan 7, 2019
1 parent 1ba5a79 commit 7c580fb
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -55238,14 +55238,20 @@ fur
following steps:</p>

<ol>
<li>
<p>If <var>form</var> is not <span>connected</span>, then return.</p>

<p class="&#x0058;&#x0058;&#x0058;">This check is currently under discussion, and may be
either removed or expanded. See <a href="https://github.com/whatwg/html/issues/2615">issue
#2615</a> and <a href="https://github.com/whatwg/html/issues/2708">issue #2708</a>.</p>
</li>

<li><p>Let <var>form document</var> be the <var>form</var>'s
<span>node document</span>.</p></li>

<li id="sandboxSubmitBlocked"><p>If <var>form document</var> is not <span>connected</span>, has
no associated <span data-x="concept-document-bc">browsing context</span>, or its <span>active
sandboxing flag set</span> has its <span>sandboxed forms browsing context flag</span> set, then
abort these steps without doing anything.</p></li>
<li id="sandboxSubmitBlocked"><p>If <var>form document</var> has no associated <span
data-x="concept-document-bc">browsing context</span>, or its <span>active sandboxing flag
set</span> has its <span>sandboxed forms browsing context flag</span> set, then return.</p></li>

<li><p>Let <var>form browsing context</var> be the <span data-x="concept-document-bc">browsing
context</span> of <var>form document</var>.</p></li>
Expand Down

0 comments on commit 7c580fb

Please sign in to comment.