/**
  * 
  * @param \DOMElement $domElement
  * @return boolean
  */
 private function isLinkElementStylesheetElementWithHrefAttribute(\DOMelement $domElement)
 {
     if (!$domElement->hasAttribute('rel')) {
         return false;
     }
     if ($domElement->getAttribute('rel') != 'stylesheet') {
         return false;
     }
     if (!$domElement->hasAttribute('href')) {
         return false;
     }
     return trim($domElement->getAttribute('href')) != '';
 }
Ejemplo n.º 2
0
 /**
  * Remove a data attribute from the attached node.
  *
  * @param string $name
  */
 public function __unset($name)
 {
     $this->_node->removeAttribute($this->encodeName($name));
 }