Javascript attributes compact
<p>Is there a way to assign attributes in a more compact manner
I dont really want to use setAttribute as it seems to be buggy in ie8
This list is for all attributes so its quite long</p>

<pre><code>else if(a=="textalign")
{
    e.style.textAlign="";
    e.align=v
}
</code></pre>
