Update DataTransfer.prototype.types to a frozen array that updates on changes

Issue #9191046 • Assigned to Travis L.

Details

Author
Domenic D.
Created
Oct 4, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
  • Chrome
  • Safari
  • Firefox
Found in build #
13.10586
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

In https://github.com/whatwg/html/issues/11#issuecomment-249155408 we discussed aligning all browsers on a new model for DataTransfer.prototype.types. It has the following changes from Edge's model:

  • Return a FrozenArray, instead of a DOMStringList
  • Keep returning the same object until changes are made, instead of returning a new object each time. (This helps make dataTransfer.types === dataTransfer.types, which is false in Edge currently.)

The spec pull request is up at https://github.com/whatwg/html/pull/1860, with web platform tests (unfortunately manual) available at https://github.com/w3c/web-platform-tests/pull/3871

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Ibrahim O.”

      Changed Assigned To to “Travis L.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in