In the following example, how to get the value of the style attribute using DOM api:
<!DOCTYPE html>
...
<div id="myid" style="foo"></div>
...
document.getElementById('myid').getAttribute('style')
returns "foo" on firefox and google chrome but returns null on IE(9)