Discuss the implications of using HTML5 Drag and Drop API in terms of UX and accessibility.
Instruction: Explain the Drag and Drop API and its impact on user experience and accessibility.
Context: This question evaluates the candidate's understanding of HTML5's Drag and Drop API and their ability to critically analyze its benefits and challenges, especially in terms of accessibility.
Updated
Official answer available
Read the opening below, then unlock the full answer and practical guidance.
The HTML drag-and-drop API uses events such as dragstart, dragover and drop, with DataTransfer for permitted transferred data. A drop target commonly cancels the appropriate dragover default to accept a drop, then validates the drop data. External file dragging has different event/data constraints from dragging an element within a page.
Dragging can help spatial tasks, but precise movement may be difficult with a keyboard, assistive technology or limited motor control...