Skip to content

DataTransfer's setData, getData, clearData should strip whitespaces on type #2946

Open
@rniwa

Description

@rniwa

it looks some ports of WebKit and Blink strips away whitespaces around the type specified to DataTranfer's setData, getData, and clearData methods. The comment indicates this was needed for IE compatibility.

Since iOS WebKit seems to have always had this behavior, I'm worried that not stripping whitespaces would not be backwards compatible.

Given the options, I think we should change the spec to strip whitespaces around the type name.

It would be great if someone could check the behavior of IE/Edge on Windows as well.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions