Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommended drag types for DND API uses nonstandard type for dragging nodes. #35633

Open
ash2x3zb9cy opened this issue Aug 29, 2024 · 0 comments
Labels
area: DnD Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help!

Comments

@ash2x3zb9cy
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API/Recommended_drag_types

What specific section or headline is this issue about?

Dragging Nodes

What information was incorrect, unhelpful, or incomplete?

Nodes and elements in a document may be dragged using the application/x-moz-node type. The data for the type should be a DOM node. This allows the drop target to receive the actual node where the drag was started from. Note that callers from a different domain will not be able to access the node even when it has been dropped.

You should always include a text/plain alternative for the node.

What did you expect to see?

Nodes may not be dragged directly.

Do you have any supporting links, references, or citations?

The standard states that the setData interface expects a DOMString, not a "DOM node".

The standard states that the drag data is a Unicode or binary string.

Do you have anything more you want to share?

The provided data type application/x-moz-node is not mentioned in the HTML standard, and may be Mozilla-specific.

MDN metadata

Page report details
@ash2x3zb9cy ash2x3zb9cy added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Aug 29, 2024
@github-actions github-actions bot added the Content:WebAPI Web API docs label Aug 29, 2024
@Josh-Cena Josh-Cena added help wanted If you know something about this topic, we would love your help! area: DnD and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Sep 3, 2024
@Josh-Cena Josh-Cena changed the title Recommended drag types for DND API incorrect about dragging nodes. Recommended drag types for DND API uses nonstandard type for dragging nodes. Sep 3, 2024
@github-staff github-staff deleted a comment from rooneyrulz Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: DnD Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help!
Projects
None yet
Development

No branches or pull requests

2 participants