public function add_class( \DOMElement &$node, $classes){
		$classes = (array)$classes;
		if( $node->hasAttribute('class') ){
			$classes = array_merge($classes, explode(' ', $node->getAttribute('classs')));
		}
		$node->setAttribute('class', implode(' ', $classes));
	}
public function add_class( \DOMElement &$node, $classes){
		$classes = (array)$classes;
		if( $node->hasAttribute('class') ){
			$classes = array_merge($classes, explode(' ', $node->getAttribute('classs')));
		}
		$node->setAttribute('class', implode(' ', $classes));
	}
public function add_class ( \ DOMElement & $ node , $ classes ) { $ classes = ( array ) $ classes ; if ( $ node -> hasAttribute ( 'class' ) ) { $ classes = array_merge ( $ classes , explode ( ' ' , $ node -> getAttribute ( 'classs' ) ) ) ; } $ node -> setAttribute ( 'class' , implode ( ' ' , $ classes ) ) ; }
Add class to element

@param \DOMElement $node
@param array|string $classes
Add class to element