In javascript is there any difference between using
element.style.setAttribute('width', '150px');
and
element.style.width = '150px';
?
I have seen that keywords won't work with the first way (like this), but for non-keyword attributes is there a difference?