Tighten up setAttribute()
Add docs for attribute [Delivers #78628158]