Closed
Bug 1267942
Opened 10 years ago
Closed 9 years ago
Note that DataTransfer.clearData can't be called from drop handler
Categories
(Developer Documentation Graveyard :: API: DOM, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: rnovacek, Unassigned)
Details
(Whiteboard: [specification][type:bug])
What did you do?
================
1. See this page: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/clearData
2. Run the example with devtools open
What happened?
==============
Following Javascript error appears in the devtools console:
NoModificationAllowedError: Modifications are not allowed for this document
What should have happened?
==========================
The example shouldn't call clearData method from drop handler as it seems that it's forbidden.
Is there anything else we should know?
======================================
I think that the page should clearly state when it is possible to call clearData method and the example should be fixed.
Updated•10 years ago
|
Assignee: eshepherd → nobody
Updated•10 years ago
|
Component: Wiki pages → General
Keywords: in-triage
Product: Mozilla Developer Network → Developer Documentation
Updated•10 years ago
|
Component: General → API: DOM
Comment 1•9 years ago
|
||
Documentation updated: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/clearData
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•