[whatwg] Proposed addition to Drag and Drop API

Ryosuke Niwa rniwa at webkit.org
Fri Jun 29 16:21:20 PDT 2012


On Fri, Jun 29, 2012 at 4:12 PM, Alex Bain <alex at alexba.in> wrote:

> I've spent the past few days working with the Drag and Drop API and I'd
> like to propose an addition to the spec to aid developers and designers in
> creating accessible drag interfaces.
>
> **Use case:**
>
> I'm developing an app that allows users to drag pieces of user generated
> content (Posts) from one part of the app to another. A Post is represented
> as a DOM subtree with multiple components - a title, some images, text, and
> so forth. I wanted to create an interaction where the user could click and
> drag anywhere on the Post (large click target for accessibility purposes),
> see a subset of the Post as a drag indicator (the title, for example), and
> then be able to drop that elsewhere in the app.
>

You can't use draggable content attribute?
http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#the-draggable-attribute

- Ryosuke



More information about the whatwg mailing list