Populate the dataTransfer property on input events with inputType of insertFromPaste, insertFromDrop, and insertReplacementText to provide access to clipboard and drag-drop data during editing operations in contenteditable elements. The dataTransfer object contains the same data that was available during the beforeinput event. This feature only applies to contenteditable elements. For form controls (textarea, input), the behavior remains unchanged - the data property contains the inserted text and dataTransfer remains null. Both Safari and Firefox already support this functionality. Chromium adopting this feature will enhance interoperability across browsers, providing a more consistent experience for web authors.
This feature enhances input events by making the dataTransfer property available on input events for three key editing operations: insertFromPaste - Paste operations from clipboard (Ctrl+V, context menu paste) insertFromDrop - Drag and drop operations insertReplacementText - Spell check corrections and text replacements Currently, the dataTransfer property is only available on beforeinput events for these operations. This implementation extends that capability to the corresponding input events, allowing developers to access the full data transfer information even after the editing operation has completed. Explainer link: https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Editing/input-event-dataTransfer-explainer.md