public setAttribute(name as String, value as String) as Void throws DOMException
Sets or creates an attribute by name.
element.setAttribute("id", "42")