I think element.currentStyle is null before inserting a new
element in the DOM tree. This bug for example makes it impossible
in IE to call setOpacity on an element before it has been inserted.
I think that is a regression in prototype 1.7.1. I'll write a test
case to prove it and submit a pull request for the fix + test on
GitHub.