Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -696,23 +696,27 @@ <h3>Extensions to the HTMLElement interface</h3>
<ol>
<li>If |editContext|'s <a>associated element</a> is equal to [=this=], then terminate these steps.</li>
<li>If |editContext|'s <a>associated element</a> is not null, then [=exception/throw=] a {{"NotSupportedError"}} {{DOMException}}.</li>
<li>Set |editContext|'s <a>associated element</a> to [=this=].</li>
</ol>
</li>
<li>Let |oldEditContext| be the value of [=this=]'s internal [[\EditContext]] slot.</li>
<li>If |oldEditContext| is not null, then:
<ol>
<li>[=Assert=]: |oldEditContext|'s <a>associated element</a> is equal to [=this=].</li>
<li>Set |oldEditContext|'s <a>associated element</a> to null.</li>
</ol>
</li>
<li>Set [=this=]'s internal [[\EditContext]] slot to be |editContext|.</li>
<li>
If |oldEditContext| is not null and |oldEditContext| is [=this=]'s
<a href="https://dom.spec.whatwg.org/#concept-node-document">node document</a>'s
[=active EditContext=], then run the steps to [=deactivate an EditContext=]
with |oldEditContext|.
[=active EditContext=], then:
<ol>
<li>Run the steps to [=deactivate an EditContext=] with |oldEditContext|.</li>
<li>
If |oldEditContext|'s <a>associated element</a> is not equal to [=this=], then terminate these steps.
</li>
<li>
If |editContext| is not null, |editContext|'s <a>associated element</a> is not null and |editContext|'s
<a>associated element</a> is not equal to [=this=], then [=exception/throw=] a {{"NotSupportedError"}} {{DOMException}}.
</li>
</ol>
</li>
<li>If |oldEditContext| is not null, set |oldEditContext|'s <a>associated element</a> to null.</li>
<li>If |editContext| is not null, then set |editContext|'s <a>associated element</a> to [=this=].
<li>Set [=this=]'s internal [[\EditContext]] slot to be |editContext|.</li>
</ol>
</div><!-- algorithm -->
</dd>
Expand Down