public function __get($name)
{
switch ($name) {
case 'nextElementSibling':
return $this->getNextElementSibling();
case 'previousElementSibling':
return $this->getPreviousElementSibling();
case 'firstElementChild':
return $this->getFirstElementChild();
case 'lastElementChild':
return $this->getLastElementChild();
}
return $this->getParentProperty($name);
}