<svg> <rect x=10 y=10 width=100 height=40 id='g' onmousemove='f(this)'/> <foreignObject> <script> function f(g) { alert(g+';\n'+g.x.animVal+';\n'+g.x.baseVal) } </script> </foreignObject> </svg>