I want to create an stylesheet like this:
var sheet = document.createElement(\'style\'); sheet.type = \'text/css\'; sheet.innerHTML = data.style;
You can always do :
sheet.styleSheet ? sheet.styleSheet.cssText = data.style : sheet.appendChild(document.createTextNode(data.style));
FIDDLE