← Back to release summary

Do not delete File kind objects in dataTransfer.clearData()

Category
Miscellaneous
Type
No developer-visible change
Status
Enabled by default (Chrome 122)
Intent stage
None

Summary

As per the spec https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransfer-cleardata, clearData() does not affect the File objects. It only deletes the `text` kind objects. More info: https://docs.google.com/document/d/1Y8WW9kxQQ6Q0YCo3FQkLQBIJWb2c9fZBBOOT7YUkU8o/edit?usp=sharing

Standards & signals

Docs: https://docs.google.com/document/d/1Y8WW9kxQQ6Q0YCo3FQkLQBIJWb2c9fZBBOOT7YUkU8o/edit?usp=sharing https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransfer-cleardata

View on chromestatus.com