Skip to content
Permalink
Browse files

Fix form connectedness check, but also warn about it

#2708 (comment)
pointed out that this check was just broken, so this fixes it. But the
check is also under discussion in #2615 and #2708, pending compat data,
so this adds a warning in the meantime.
  • Loading branch information...
domenic committed May 31, 2017
1 parent c0790b4 commit df520f824a0f5b705059855a602d47590629b2aa
Showing with 10 additions and 4 deletions.
  1. +10 −4 source
14 source
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>

0 comments on commit df520f8

Please sign in to comment.
You can’t perform that action at this time.