[Webkit-unassigned] [Bug 274702] New: compositionend Event Not Triggered When Clearing contentEditable Element
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 24 19:47:56 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=274702
Bug ID: 274702
Summary: compositionend Event Not Triggered When Clearing
contentEditable Element
Product: WebKit
Version: Safari 17
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: HTML Editing
Assignee: webkit-unassigned at lists.webkit.org
Reporter: gusrn1423 at naver.com
CC: wenson_hsieh at apple.com
Test Environment:
•macOS: Version 14.4.1
•Safari: Version 17.4.1 (19618.1.15.11.14)
•iPhone: iOS 17.4.1
•Safari: Version 17.4.1 Mobile/15E148 Safari/604.1
Description:
- In contentEditable elements, when input is cleared using methods like elem.innerHTML = '', the compositionend event does not fire as expected. This issue affects text input handling and disrupts the expected behavior of composition events.
Steps to Reproduce:
1. Create a contentEditable element in a webpage.
2. Start typing text in the contentEditable element to initiate a composition (e.g., using an IME for Japanese). (Currently, Korean does trigger composition event https://bugs.webkit.org/show_bug.cgi?id=274700)
3. While the composition is ongoing, clear the content using JavaScript: elem.innerHTML = ''.
4. Observe that the compositionend event does not fire.
Expected Result:
- The compositionend event should be triggered when the content of a contentEditable element is cleared, ensuring proper handling of composition termination.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240525/3bf0e63e/attachment-0001.htm>
More information about the webkit-unassigned
mailing list