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

How should UAs handle web authors setting dropEffect values? #10336

Open
ragoulik opened this issue May 8, 2024 · 1 comment
Open

How should UAs handle web authors setting dropEffect values? #10336

ragoulik opened this issue May 8, 2024 · 1 comment

Comments

@ragoulik
Copy link

ragoulik commented May 8, 2024

The drag and drop spec specifies how the dropEffect value should be set by UAs for different events here: https://html.spec.whatwg.org/multipage/dnd.html#dndevents. However, the spec is not explicit about the following:

  • Should UAs allow authors to set the dropEffect value to any valid value?
  • If authors can set the dropEffect value, should UAs reflect that choice in the visual drop effect? For example, in dragenter event, if effectAllowed is copyMove and UA’s preferred value is copy but web author sets it to move, should this be reflected in attribute value?
@annevk
Copy link
Member

annevk commented Aug 14, 2024

On setting, if the new value is one of "none", "copy", "link", or "move", then the attribute's current value must be set to the new value. Other values must be ignored.

And then if you look further on in the processing model you'll find that there is some branching on the current value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants
@annevk @sanketj @ragoulik and others