diff --git a/src/voku/helper/AbstractSimpleHtmlDom.php b/src/voku/helper/AbstractSimpleHtmlDom.php index 852114a..65c75cb 100644 --- a/src/voku/helper/AbstractSimpleHtmlDom.php +++ b/src/voku/helper/AbstractSimpleHtmlDom.php @@ -171,7 +171,9 @@ public function __set($name, $value) $value = (string)$value; } - return $this->node->{$nameOrig} = $value; + if (!is_null($value)) { + return $this->node->{$nameOrig} = $value; + } } return $this->setAttribute($name, $value);