protected function getStyle(DOMElement $node, $deep = false)
	{
		$style = '';
		if (ElementInspector::preservesWhitespace($node))
		{
			$style .= 'white-space:pre;';
		}
		$style .= $node->getAttribute('style');

		// Add the content of any descendant/child xsl:attribute named "style"
		$query = (($deep) ? './/' : './') . 'xsl:attribute[@name="style"]';
		foreach ($this->xpath->query($query, $node) as $attribute)
		{
			$style .= ';' . $attribute->textContent;
		}

		return $style;
	}
protected function getStyle(DOMElement $node, $deep = false)
	{
		$style = '';
		if (ElementInspector::preservesWhitespace($node))
		{
			$style .= 'white-space:pre;';
		}
		$style .= $node->getAttribute('style');

		// Add the content of any descendant/child xsl:attribute named "style"
		$query = (($deep) ? './/' : './') . 'xsl:attribute[@name="style"]';
		foreach ($this->xpath->query($query, $node) as $attribute)
		{
			$style .= ';' . $attribute->textContent;
		}

		return $style;
	}
protected function getStyle ( DOMElement $ node , $ deep = false ) { $ style = '' ; if ( ElementInspector :: preservesWhitespace ( $ node ) ) { $ style .= 'white-space:pre;' ; } $ style .= $ node -> getAttribute ( 'style' ) ; // Add the content of any descendant/child xsl:attribute named "style" $ query = ( ( $ deep ) ? './/' : './' ) . 'xsl:attribute[@name="style"]' ; foreach ( $ this -> xpath -> query ( $ query , $ node ) as $ attribute ) { $ style .= ';' . $ attribute -> textContent ; } return $ style ; }
Retrieve and return the inline style assigned to given element

@param  DOMElement $node Context node
@param  bool       $deep Whether to retrieve the content of all xsl:attribute descendants
@return string
Retrieve and return the inline style assigned to given element