Are you sure about this? Quirksmode says "don't use", maybe they have a reason http://quirksmode.org/dom/core/.
Even if quirksmode's reason is not applicable in this case, I'd prefer if you'd use ```attrs()```, since that limits the number of interactions with the DOM (only one way to get the attributes from an element).