Example #1
0
 /**
  * Set an attribute on an element
  *
  * @param string $name
  * @param bool $isId
  */
 public function setIdAttribute($name, $isId)
 {
     list($namespace, $localName) = $this->resolveTagName($name);
     if ($namespace != '') {
         parent::setIdAttributeNS($namespace, $localName, $isId);
     } else {
         parent::setIdAttribute($name, $isId);
     }
 }