Skip to content

IE11 throws on input type="date" #2110

@marvinhagemeister

Description

@marvinhagemeister

Reported via slack:

charlie 9:56 PM
going for a good head scratcher.. If I I have IE11 just breaks with a "Error: Invalid argument." error (changing the type to text brings it back to life). Fine in 8. While the type isn't supported, I'd expect IE to just gracefully degrade back to a text input.

Had a quick look into it and IE 11 throws when you try to use the setter directly with a value it doesn't support.

// Throws
input.type = "date";

// Works
input.setAttribute("type", "date");

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions