Isn't "elem" renamed by the compiler? I added getElement for exactly this: https://github.com/openlayers/ol3/pull/929.