From 45440ecf7b731d69491563d9efb83bbf65081566 Mon Sep 17 00:00:00 2001 From: Kevin Mahoney Date: Fri, 18 Apr 2014 22:44:05 -0700 Subject: [PATCH] Non-namespaced elements now return $this->localName (if it's not null). --- lib/Sabre/XML/Reader.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Sabre/XML/Reader.php b/lib/Sabre/XML/Reader.php index bdec7cd..fa1ee60 100644 --- a/lib/Sabre/XML/Reader.php +++ b/lib/Sabre/XML/Reader.php @@ -53,6 +53,9 @@ class Reader extends XMLReader { public function getClark() { if (!$this->namespaceURI) { + if (isset($this->localName)) { + return $this->localName; + } return null; } return '{' . $this->namespaceURI . '}' . $this->localName;