Skip to content

Commit 3932cbc

Browse files
committed
update steps to handle re-entracy
1 parent cb7b93e commit 3932cbc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -705,13 +705,13 @@ <h3>Extensions to the HTMLElement interface</h3>
705705
[=active EditContext=], then run the steps to [=deactivate an EditContext=]
706706
with |oldEditContext|.
707707
</li>
708-
<li>If |editContext| is not null, then set |editContext|'s <a>associated element</a> to [=this=].
709-
<li>If |oldEditContext| is not null, then:
710-
<ol>
711-
<li>[=Assert=]: |oldEditContext|'s <a>associated element</a> is equal to [=this=].</li>
712-
<li>Set |oldEditContext|'s <a>associated element</a> to null.</li>
713-
</ol>
708+
<li>If |oldEditContext| is not null and |oldEditContext|'s <a>associated element</a> is not equal to [=this=], then terminate these steps.</li>
709+
<li>
710+
If |editContext| is not null, |editContext|'s <a>associated element</a> is not null and |editContext|'s <a>associated element</a>
711+
is not equal to [=this=], then [=exception/throw=] a {{"NotSupportedError"}} {{DOMException}}.
714712
</li>
713+
<li>If |oldEditContext| is not null, set |oldEditContext|'s <a>associated element</a> to null.</li>
714+
<li>If |editContext| is not null, then set |editContext|'s <a>associated element</a> to [=this=].
715715
<li>Set [=this=]'s internal [[\EditContext]] slot to be |editContext|.</li>
716716
</ol>
717717
</div><!-- algorithm -->

0 commit comments

Comments
 (0)