Attributes setter and getter for DOM.