Closed Alex1990 closed 9 years ago
@Alex1990 looks good. I'm going to do some additional testing on it. Can you rebase? So that I can merge. Thanks!
Okay! @amerikan I've fixed the chainability of the val()
method for password. For example:
$('#password').val('aaa');
$('#password').val('');
$('#password').val('aaa').val('').val();
$('#password').val();
$('#password').val('aaa').val('bb').val();
$('#password').val();
$('#password').val('').val('').val();
$('#password').val();
You can check the online demo http://alex1990.github.io/misc/placeholder-polyfill-test/placeholder-polyfill-test.html.
type
of input withsetAttribute
doesn't throw error in IE7/8 simulated by IE9+. But,input.type = someType
will throw error. This can fix the password input dot problem in IE7/8 simulated by IE9+.The demo after fixing the above errors: http://alex1990.github.io/misc/placeholder-polyfill-test/placeholder-polyfill-test.html