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:
parent
3ae5fbc16a
commit
ed7608d8ee
2 changed files with 11 additions and 2 deletions
|
@ -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 ) )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue