From 1b8b526f78176a2aa85a63577d28a4fcc0210f62 Mon Sep 17 00:00:00 2001 From: Dan Clark Date: Mon, 18 Sep 2023 17:14:22 -0700 Subject: [PATCH 1/3] Add EditContext entry point as default action for `beforeinput`. Specify that `input` does not fire for EditContext. --- index.html | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index e5aeaa7..5b97c68 100644 --- a/index.html +++ b/index.html @@ -1653,11 +1653,27 @@

action [[UI-EVENTS]] - Varies: 'Update the DOM' for contentEditable=typing editing - hosts for inputTypes "insertCompositionText" - and "deleteCompositionText". 'Update the DOM - element' for contentEditable="true" editing - hosts for all inputTypes. None otherwise. + @@ -1788,9 +1804,14 @@

- A [=user agent=] MUST [=dispatch=] this event immediately after - the DOM has been updated due to a user expressed intention to - change the document contents which the browser has handled. + A [=user agent=] MUST [=dispatch=] this event immediately after the DOM has been + updated due to user expressed intention to change the document contents which the + browser has handled. If the browser makes no DOM change, either because the + editing host is an + EditContext editing host + (which does not do automatic DOM changes) or because the [=user agent=] + concludes that no DOM change is needed, the user agent MUST NOT + dispatch this event.

From 9839d20f4c11d770150d2c45f729ebf6b31c956c Mon Sep 17 00:00:00 2001 From: Dan Clark Date: Fri, 6 Oct 2023 11:29:16 -0700 Subject: [PATCH 2/3] Update `beforeinput` trusted target to be any Editing Host --- index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.html b/index.html index 5b97c68..6a1d4fa 100644 --- a/index.html +++ b/index.html @@ -1642,8 +1642,7 @@

Trusted Targets - Any Element with contenteditable - attribute enabled. + Any Element that is an [=editing host=]. From 4b95f1a8212d421bf41128503af2583e46ce899f Mon Sep 17 00:00:00 2001 From: Dan Clark Date: Fri, 6 Oct 2023 11:31:23 -0700 Subject: [PATCH 3/3] Linkify `editing host` references --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 6a1d4fa..80a96f9 100644 --- a/index.html +++ b/index.html @@ -1659,7 +1659,7 @@

and "deleteCompositionText": 'Update the DOM'.
  • - For contentEditable="true" editing hosts + For contentEditable="true" [=editing hosts=] for all inputTypes: 'Update the DOM'.
  • @@ -1667,7 +1667,7 @@

    EditContext editing hosts for all inputTypes: Handle input for EditContext - given the editing host element. + given the [=editing host=] element.

  • None otherwise.