nanatiris / jquery-watermark

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

Version 3.1.2 does not work with jQuery 1.5.1 and Firefox 3.6.15 #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reproduce the problem by doing the following:
1. Download jquery-watermark 3.1.2
2. Change the loaded jquery Version in jquery.watermark.htm to 1.5.1: 
google.load("jquery", "1.5.1");
3. Open page with Firefox 3.6

With jQuery 1.5.1 the Watermarks are only appearing on FF 3.6 in <textarea> and 
<input type="password"> elements, but not in <input type="text"> elements. I 
also tested it with IE8 where everything is working fine.

With jQuery 1.5.0 then everything works in FF 3.6 and IE8.

Original issue reported on code.google.com by stefan.p...@gmail.com on 22 Mar 2011 at 8:07

GoogleCodeExporter commented 9 years ago
Thank you for the problem report.  

This was caused by a jQuery regression bug in 1.5.1 that does not properly 
identify input elements using an "input:text" selector in Firefox 3.6 when the 
input element does not include a type attribute. 

When a type attribute is not included, the input element supposed to be 
identified as a text type by default, but jQuery is not identifying it as such 
-- at least not in Firefox.

I implemented a work-around in the selector so that it will no longer cause a 
problem.  (The fix is included in version 3.1.3 of the plugin, which is now 
available for download.)

Original comment by t...@speednet.biz on 22 Mar 2011 at 3:06