I was just trying to do the following in jQuery:
var newCanvas = $(\'\',{\'width\':100,\'height\':200,\'class\':\'radHuh\'}); $(body).append(n
Edit: This is slower, see comments below.
This will likely be faster than any workaround posted here:
var attributes = {width: 100, height: 100, class: "whatever"}; $('').appendTo(document.body);
Slightly less fancier, but it's esentially the same with less function calls.