А, точно, это не по стандарту.
Цитата:
|
Except in Opera, styles can not be set by assigning a string to the (read only) style property, as in elt.style = "color: blue;". This is because the style attribute returns a CSSStyleDeclaration object.
|
https://developer.mozilla.org/en-US/...#Setting_style