loisoft / jquery-watermark

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

jQuery.attr( "tagName" ) #120

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
As per the current jQuery documentation:

"...selectedIndex, tagName, nodeName, nodeType, ownerDocument, defaultChecked, 
and defaultSelected should be retrieved and set with the .prop() method. Prior 
to jQuery 1.6, these properties were retrievable with the .attr() method, but 
this was not within the scope of attr..."

Hence
( ( $input.attr( "tagName" ) || "" ) !== "TEXTAREA" )
should be replaced by
( ( $input.prop( "tagName" ) || "" ) !== "TEXTAREA" )

Original issue reported on code.google.com by sanderbe...@gmail.com on 12 Dec 2013 at 4:41