From 81d90bb1fe39742440f106a10cb71dcece918398 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Date: Thu, 14 Aug 2025 13:55:11 +0530 Subject: [PATCH 1/3] add differences for canvas element --- index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.html b/index.html index cce9947..f47f443 100644 --- a/index.html +++ b/index.html @@ -257,6 +257,10 @@

Differences for an EditContext editing hostEditContext editing host as a direct result of user action event as specified in [[uievents]]. +
  • + When a <canvas> element is used as the [=associated element=], the browser's spellcheck + cannot be used, and the author has to implement selection and caret navigation. +
  • From 130ef919ca60636094768dcedb3cbc3854365088 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Date: Mon, 18 Aug 2025 11:10:19 +0530 Subject: [PATCH 2/3] add diffs for composition events --- index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.html b/index.html index f47f443..43ab4f2 100644 --- a/index.html +++ b/index.html @@ -257,6 +257,11 @@

    Differences for an EditContext editing hostEditContext editing host as a direct result of user action event as specified in [[uievents]]. +
  • + When the {{Document}} being edited has an [=active EditContext=], the user agent must not fire the + composition events against the + EditContext editing host, instead they must be fired against the {{EditContext}}. +
  • When a <canvas> element is used as the [=associated element=], the browser's spellcheck cannot be used, and the author has to implement selection and caret navigation. From f2406e132d289648c8a41d3dbd2e22d94499068c Mon Sep 17 00:00:00 2001 From: Ashish Kumar Date: Wed, 20 Aug 2025 12:20:37 +0530 Subject: [PATCH 3/3] address feedback --- index.html | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 43ab4f2..f9deccf 100644 --- a/index.html +++ b/index.html @@ -234,7 +234,8 @@

    Differences for an EditContext editing hostEditContext editing host becomes editable, unless that node has a [^html-global/contenteditable^] attribute set to "false".

  • -
  • The user agent handles focus and caret navigation for any editable element in the EditContext editing host.
  • +
  • The user agent handles focus and caret navigation for any editable element in the EditContext editing host (except when the + [=associated element=] is a [=canvas=]; see below in this section).
  • The EditContext editing host receives key events and the beforeinput event as specified in [[uievents]]. @@ -258,13 +259,26 @@

    Differences for an EditContext editing host
  • - When the {{Document}} being edited has an [=active EditContext=], the user agent must not fire the + When the {{Document}} being edited has an [=active EditContext=], the user agent must not fire composition events against the - EditContext editing host, instead they must be fired against the {{EditContext}}. + EditContext editing host as a direct result of user action. Instead they will be fired against the {{EditContext}} as part + of [=update the EditContext|updating the EditContext=] or [=deactivate an EditContext|deactivating the EditContext=].
  • - When a <canvas> element is used as the [=associated element=], the browser's spellcheck - cannot be used, and the author has to implement selection and caret navigation. +

    + When the [=active EditContext=]'s [=associated element=] is a [=canvas=], there are further differences: +

    +
      +
    • + The user agent is unable to handle caret navigation and selection since it doesn't have information + about how text is laid out in the [=canvas=], so the author has to implement caret navigation and selection. +
    • +
    • + The user agent is unable to present inline spelling and grammar suggestions since it doesn't have information + about how the text is laid out in the [=canvas=], so if the author wants to support spelling and grammar suggestions, + they have to implement that themselves. +
    • +