Skip to content

Commit d3043e0

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

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

index.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -705,13 +705,16 @@ <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>
709+
If |oldEditContext| is not null and |oldEditContext|'s <a>associated element</a> is not equal to [=this=], then
710+
terminate these steps.
714711
</li>
712+
<li>
713+
If |editContext| is not null, |editContext|'s <a>associated element</a> is not null and |editContext|'s
714+
<a>associated element</a> is not equal to [=this=], then [=exception/throw=] a {{"NotSupportedError"}} {{DOMException}}.
715+
</li>
716+
<li>If |oldEditContext| is not null, set |oldEditContext|'s <a>associated element</a> to null.</li>
717+
<li>If |editContext| is not null, then set |editContext|'s <a>associated element</a> to [=this=].
715718
<li>Set [=this=]'s internal [[\EditContext]] slot to be |editContext|.</li>
716719
</ol>
717720
</div><!-- algorithm -->

0 commit comments

Comments
 (0)