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)
I don't think it is possible, as JS have no clue whatsoever about DTD format. You need to look at the tag specification (taking into account the proper doctype that tag will be used in).