Manipulating ClipboardEvent.clipboardData
#867
Labels
accuracy
Improves the accuracy of how behavior is simulated
ClipboardEvent.clipboardData
#867
@testing-library/user-event
version:v14.0.0-beta.11
Relevant code or config
Problem description:
When double-checking #862 and #866 , I discovered that accessing/manipulating
ClipboardEvent.clipboardData
is limited.(In Firefox:)
The data written to Clipboard is independent from the
clipboardData
on thecut
/copy
event. Manipulating has no effect.Also the handler cannot read the clipboard data.
The data pasted from Clipboard is readable on the
paste
event. But manipulating it results in aDOMException
.Suggested solution:
Check consistency across browsers. If it is, implement API accordingly.
The text was updated successfully, but these errors were encountered: