Skip to content

Commit b3f8b55

Browse files
committed
update deativate timing
1 parent 1b12ed5 commit b3f8b55

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -692,27 +692,27 @@ <h3>Extensions to the HTMLElement interface</h3>
692692
</dl>
693693
<ol>
694694
<li>If [=this=]'s [=Element/local name=] is neither a [=valid shadow host name=] nor "<code>canvas</code>", then [=exception/throw=] a {{"NotSupportedError"}} {{DOMException}}.</li>
695+
<li>Let |oldEditContext| be the value of [=this=]'s internal [[\EditContext]] slot.</li>
696+
<li>
697+
If |oldEditContext| is not null and |oldEditContext| is [=this=]'s
698+
<a href="https://dom.spec.whatwg.org/#concept-node-document">node document</a>'s
699+
[=active EditContext=], then run the steps to [=deactivate an EditContext=]
700+
with |oldEditContext|.
701+
</li>
695702
<li>If |editContext| is not null, then:
696703
<ol>
697704
<li>If |editContext|'s <a>associated element</a> is equal to [=this=], then terminate these steps.</li>
698705
<li>If |editContext|'s <a>associated element</a> is not null, then [=exception/throw=] a {{"NotSupportedError"}} {{DOMException}}.</li>
699706
<li>Set |editContext|'s <a>associated element</a> to [=this=].</li>
700707
</ol>
701708
</li>
702-
<li>Let |oldEditContext| be the value of [=this=]'s internal [[\EditContext]] slot.</li>
703709
<li>If |oldEditContext| is not null, then:
704710
<ol>
705711
<li>[=Assert=]: |oldEditContext|'s <a>associated element</a> is equal to [=this=].</li>
706712
<li>Set |oldEditContext|'s <a>associated element</a> to null.</li>
707713
</ol>
708714
</li>
709715
<li>Set [=this=]'s internal [[\EditContext]] slot to be |editContext|.</li>
710-
<li>
711-
If |oldEditContext| is not null and |oldEditContext| is [=this=]'s
712-
<a href="https://dom.spec.whatwg.org/#concept-node-document">node document</a>'s
713-
[=active EditContext=], then run the steps to [=deactivate an EditContext=]
714-
with |oldEditContext|.
715-
</li>
716716
</ol>
717717
</div><!-- algorithm -->
718718
</dd>

0 commit comments

Comments
 (0)