id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blocking	blockedby
9323	"""width"" and ""height"" can not be set as attributes when creating an <img> with the props argument"	patrickwhalen		"It isn't possible to add ""width"" and ""height"" attributes via the ""props"" object argument when creating a new `<img>`.

Code example taken from this StackOverflow question: http://stackoverflow.com/questions/6037231/bug-in-jquery-dom-element-builder-for-images-with-width-height

{{{#!js

var x = $('<img/>', {width:10, height:20});

x; // => [<img style=​""width:​ 10px;​ height:​ 20px;​ "">​]

}}}

http://jsfiddle.net/gY97g/

This is because jQuery calls its own `width` and `height` methods, which conflict with the legitimate `width` and `height` attribute.

I'd imagine it is too late to remove the conflict, so a possible workaround would be to add the `attr` method as one that jQuery will invoke from the ""props"" argument.

{{{#!js

$('<img/>', {attr:{width:10, height:20}});

x; // => [<img width=""10"" height=""20"">​]

}}}

"	bug	closed	low	1.next	core	1.6.1	wontfix				
