static public function addStyle(\DOMElement $element, $property, $value)
    {
        $s = static::explodeStyles((string)$element->getAttribute('style'));

        $s[$property] = $value;

        $element->setAttribute('style', static::implodeStyles($s));
    }
static public function addStyle(\DOMElement $element, $property, $value)
    {
        $s = static::explodeStyles((string)$element->getAttribute('style'));

        $s[$property] = $value;

        $element->setAttribute('style', static::implodeStyles($s));
    }
static public function addStyle ( \ DOMElement $ element , $ property , $ value ) { $ s = static :: explodeStyles ( ( string ) $ element -> getAttribute ( 'style' ) ) ; $ s [ $ property ] = $ value ; $ element -> setAttribute ( 'style' , static :: implodeStyles ( $ s ) ) ; }
Adds the style to the dom element.

@param \DOMElement $element
@param string      $property
@param string      $value
Adds the style to the dom element .