use setAttribute instead of setAttributeNS

what is the difference? i'm keen to change because min-document does not have setAttributeNS implemented.