Inheritance: extends Nodes
Ejemplo n.º 1
0
 /**
  * Remove the attribute(s) on all selected element nodes
  *
  * @see ArrayAccess::offsetUnset()
  * @see FluentDOM::removeAttr()
  * @example properties/attr-unset.php Usage: Remove attribute properties
  * @param string|array $name
  */
 public function offsetUnset($name)
 {
     $this->_fd->removeAttr($name);
 }
Ejemplo n.º 2
0
 /**
  * Allow to use array syntax to change a css property value on all matched nodes.
  *
  * @see ArrayAccess::offsetSet()
  * @param string $name
  * @param string $value
  */
 public function offsetSet($name, $value)
 {
     $this->_fd->css($name, $value);
 }
Ejemplo n.º 3
0
 /** @param \FluentDOM\Query $dom */
 public function setDom($dom)
 {
     $this->content = $dom->find('//body')->first()->html();
 }