mirror of
https://github.com/jquery/jquery.git
synced 2026-02-06 16:54:58 -05:00
Fixed #1070 by converting all setAttribute() values to a string which is what all browsers but IE did. This will bring IE in line with the others and fix the bug.
This commit is contained in:
@@ -1042,7 +1042,8 @@ jQuery.extend({
|
||||
if ( name == "type" && jQuery.nodeName( elem, "input" ) && elem.parentNode )
|
||||
throw "type property can't be changed";
|
||||
|
||||
elem.setAttribute( name, value );
|
||||
// convert the value to a string (all browsers do this but IE) see #1070
|
||||
elem.setAttribute( name, "" + value );
|
||||
}
|
||||
|
||||
if ( jQuery.browser.msie && /href|src/.test( name ) && !jQuery.isXMLDoc( elem ) )
|
||||
|
||||
Reference in New Issue
Block a user