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; } }