I would like to know all possible attributes of an element in JS.
I did :
s = document.getElementById(\"idSvg\"); r = s.attributes; alert(r.length)
you can try this, but better off looking it up on w3.org
(function() { var s = document.getElementById("idSvg"); for (var key in s) { document.write(key + ""); } })();