robnyman / domassistant

Automatically exported from code.google.com/p/domassistant
1 stars 0 forks source link

setStyle on newly created (but not yet added to the DOM) elements fails in IE7 #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. var div = $(document).create("div");
2. div.setStyle("display", "inline");

What is the expected output? What do you see instead?
Crashes in IE, but works in Firefox (ie sets the style on the element). 

What version of the product are you using? On what operating system?
2.7.4
IE7

Please provide any additional information below.
This, however, works:
var div = $(document).create("div", null, true);
div.setStyle("display", "inline");

Original issue reported on code.google.com by gustaf.f...@gtempaccount.com on 17 Apr 2009 at 12:09

GoogleCodeExporter commented 9 years ago

Original comment by chengh...@gmail.com on 18 Apr 2009 at 4:05

GoogleCodeExporter commented 9 years ago
Check SVN for fixed version.

Original comment by chengh...@gmail.com on 18 Apr 2009 at 5:14