Bug 304068

Summary: Safari Desktop: When aborting a composition after pressing a dead key (e.g. ^) in oncompositionend event.data will have "" while "^" is expected
Product: WebKit Reporter: michael
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: rniwa, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Mac (Apple Silicon)   
OS: macOS 26   

michael
Reported 2025-12-12 08:00:55 PST
With aborting I mean pressing a dead key (composition starts) and then click somewhere else (composition is implicitly ended - oncompositionend is called). However since the native behavior of contenteditable would leave the `"^"` in the DOM after cancelling, I'd expect the `event.data` in oncompositionend also have `"^"`, which is not the case on Desktop Safari. Repro: https://w3c.github.io/editing/repros/505.html Context: https://github.com/w3c/editing/issues/505
Attachments
michael
Comment 1 2025-12-12 08:22:19 PST
Note: This issue has been discussed with Henson Hsieh at the W3C Editing TF December Meeting.
Radar WebKit Bug Importer
Comment 2 2025-12-19 08:01:11 PST
Note You need to log in before you can comment on or make changes to this bug.