Pablo

Pablo.getAttributes(element)

Returns an object of attributes on the DOM element.

var el = document.createElement('a'),
    attributes;

el.setAttribute('href', 'http://example.com');
attributes = Pablo.getAttributes(el);

alert(el.href);
Painting is just another way of keeping a diary.
Pablo Picasso