CHROME 4.0.223.9 + jQuery

CHROME 4.0.223.9 + jQuery


CHROME 4.0.223.9
If one does this :
var dumsy = $("<div style='display:none;'></div>").css
("color", "red");
C = window.getComputedStyle(dumsy[0], null).getPropertyValue
("color");
C will be empty string , aka "". Also observing
window.getComputedStyle(dumsy[0], null).cssText will reveal that
"color:" has no value , as everything else in that long string.
Then if one does this :
var dumsy = $("<div style='display:none;'></div>").css
("color", "red");
dumsy.appendTo(document.body);
C = window.getComputedStyle(dumsy[0], null).getPropertyValue
("color");
C will be "rgb(255,0,0)" as it should ...
Chrome or JQuery or me , whose fault is this ?
Ah, yes, this works in FireFox (even) without : dumsy.appendTo
(document.body);
--DBJ