diff --git a/index.html b/index.html index f9deccf..a3e11b7 100644 --- a/index.html +++ b/index.html @@ -696,23 +696,27 @@

Extensions to the HTMLElement interface

  1. If |editContext|'s associated element is equal to [=this=], then terminate these steps.
  2. If |editContext|'s associated element is not null, then [=exception/throw=] a {{"NotSupportedError"}} {{DOMException}}.
  3. -
  4. Set |editContext|'s associated element to [=this=].
  • Let |oldEditContext| be the value of [=this=]'s internal [[\EditContext]] slot.
  • -
  • If |oldEditContext| is not null, then: -
      -
    1. [=Assert=]: |oldEditContext|'s associated element is equal to [=this=].
    2. -
    3. Set |oldEditContext|'s associated element to null.
    4. -
    -
  • -
  • Set [=this=]'s internal [[\EditContext]] slot to be |editContext|.
  • If |oldEditContext| is not null and |oldEditContext| is [=this=]'s node document's - [=active EditContext=], then run the steps to [=deactivate an EditContext=] - with |oldEditContext|. + [=active EditContext=], then: +
      +
    1. Run the steps to [=deactivate an EditContext=] with |oldEditContext|.
    2. +
    3. + If |oldEditContext|'s associated element is not equal to [=this=], then terminate these steps. +
    4. +
    5. + If |editContext| is not null, |editContext|'s associated element is not null and |editContext|'s + associated element is not equal to [=this=], then [=exception/throw=] a {{"NotSupportedError"}} {{DOMException}}. +
    6. +
  • +
  • If |oldEditContext| is not null, set |oldEditContext|'s associated element to null.
  • +
  • If |editContext| is not null, then set |editContext|'s associated element to [=this=]. +
  • Set [=this=]'s internal [[\EditContext]] slot to be |editContext|.