Skip to content

Commit

Permalink
Allow get/set of shorthand attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Jan 6, 2015
1 parent 14850ef commit 40021c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Dom/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function __get($name) {
$value = self::wrapNative($value);
}
else {
throw new InvalidNodePropertyException($name);
$value = $this->getAttribute($name);
}
break;
}
Expand Down Expand Up @@ -167,7 +167,7 @@ public function __set($name, $value) {
break;

default:
throw new InvalidNodePropertyException($name);
$this->setAttribute($name, $value);
}
}

Expand Down

0 comments on commit 40021c3

Please sign in to comment.