Calling elem.setSelectionRange on inputs with type date or time throws a TypeError.

Filed as Apple bug #15122724.

Test:

Control: