Skip to content

Commit 5fe3e30

Browse files
committed
Expanded notes to viewer developers in Implementation and Restrictions 📝
1 parent 1d17da3 commit 5fe3e30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎recipe/0599-drag-and-drop/index.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ function drag(ev) {
6767

6868
### For Viewer Developers
6969

70-
A supporting viewer must have an interface capable of handling the DataTransfer object's data carried by the draggable item in its `drop` event.
70+
A supporting viewer must have an interface capable of handling the DataTransfer object's data carried by the draggable item in its `drop` event. Somewhat as for resource providers, [the `getData` method of Web Assembly can specify other content types](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/getData) but the spec for [IIIF Content State](https://iiif.io/api/content-state/1.0/#initialization-mechanisms-dragdrop) requires a content type of `text/plain` for maximum compatibility. See the immediately following section for cautions about receiving content.
7171

7272
## Restrictions
7373

7474
Because implementation is two-part, you may only have control over one half of the ability to drag and drop. Consequently, and since this action is only in a GUI environment, you will need to consider whether visitors to your IIIF interface would benefit from some kind of support text.
7575

76-
Viewer developers will have a special need to consider security when implementing a droppable interface.
76+
Viewer developers will have a special need to consider security when implementing a droppable interface. This recipe cannot cover all of data transfer security, but will note that all content provided to a site should be sanitized.
7777

7878
## Example
7979

0 commit comments

Comments
 (0)