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)

All
Other
defect
Not set
normal

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.
Assignee: nobody → eshepherd
Keywords: in-triage
Assignee: eshepherd → nobody
Component: Wiki pages → General
Keywords: in-triage
Product: Mozilla Developer Network → Developer Documentation
Component: General → API: DOM
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.