/** * 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); }
/** * 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); }
/** @param \FluentDOM\Query $dom */ public function setDom($dom) { $this->content = $dom->find('//body')->first()->html(); }