I need the JavaScript code to iterate through the filled attributes in an HTML element.
This Element.attributes ref says I can access it via index, but does not specify whether it is well supported and can be used (cross-browser).
Or any other ways? (without using any frameworks, like jQuery / Prototype)