nanatiris / jquery-watermark

Automatically exported from code.google.com/p/jquery-watermark
0 stars 0 forks source link

Password field turns to text when setting value. #56

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a password input type and apply watermark.
2. Change the value via $('#pwd').val('random-password');
3. Field becomes plain text.

What is the expected output? What do you see instead?
I would expect that this would be a password still.

What version of the product are you using? On what operating system?
Latest version of framework.  Windows 7 (All latest browsers, FF 3x latest).

Please provide any additional information below.
Thanks!

Original issue reported on code.google.com by mrwilli...@gmail.com on 25 Mar 2011 at 4:33

GoogleCodeExporter commented 9 years ago
This is likely a security mechanism in the Web browser, and the watermark 
plugin documentation warns you against modifying password elements via script.  
A bad idea all-around.

Original comment by t...@speednet.biz on 25 Mar 2011 at 5:00