From 5a17ce17e69c54728d742ba4861b96236c7fa39c Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Wed, 29 Apr 2026 16:21:21 -0400 Subject: [PATCH] Clarify getTargetRanges() for EditContext --- index.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 80db906..419e848 100644 --- a/index.html +++ b/index.html @@ -1494,12 +1494,13 @@
getTargetRanges() returns an array of StaticRanges representing the content that the event will - modify if it is not canceled, if the [=editing host=] is - contenteditable node or an - EditContext editing host. Otherwise this method will return - none. The returned StaticRanges MUST cover only the code points + EditContext editing host. Otherwise this method returns an + empty Array. The returned StaticRanges MUST cover only the + code points that the browser would normally replace, even if they are only part of a [=grapheme cluster=].