Sometimes passwordField.setAttribute("value","newValue") doesn't work on my password field. But passwordField.value = "newValue" always works.
moreover, setAttribute is working fine on Mac platform but sometimes doesn't work on win platform
Why is this happening ?