From 78bed97d4be8f4ab39111344554e4f3c696dda7b Mon Sep 17 00:00:00 2001 From: Volker von Hoesslin Date: Wed, 6 Apr 2016 16:29:47 +0200 Subject: [PATCH] Handle itemprop "content" attribute --- src/MicrodataPhpDOMElement.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/MicrodataPhpDOMElement.php b/src/MicrodataPhpDOMElement.php index 58de31a..028e8d7 100644 --- a/src/MicrodataPhpDOMElement.php +++ b/src/MicrodataPhpDOMElement.php @@ -145,6 +145,9 @@ public function itemValue() { if (!empty($datetime)) return $datetime; default: + if($this->hasAttribute('content')) { + return $this->getAttribute('content'); + } return $this->textContent; } }