Changed validateNode to validateAttribute, was not receiving a DOM element.
Changed node to element in order to reduce doubt and increase clarity.