From 40021c39c4738960f0b1372ce21c88cd1c297289 Mon Sep 17 00:00:00 2001 From: Greg Bowler Date: Tue, 6 Jan 2015 16:15:27 +0000 Subject: [PATCH] Allow get/set of shorthand attributes --- src/Dom/Node.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dom/Node.php b/src/Dom/Node.php index 7cea787e..c679be1d 100644 --- a/src/Dom/Node.php +++ b/src/Dom/Node.php @@ -124,7 +124,7 @@ public function __get($name) { $value = self::wrapNative($value); } else { - throw new InvalidNodePropertyException($name); + $value = $this->getAttribute($name); } break; } @@ -167,7 +167,7 @@ public function __set($name, $value) { break; default: - throw new InvalidNodePropertyException($name); + $this->setAttribute($name, $value); } }