getAttribute not always defined for DOMText

PHP Fatal error:  Call to undefined method DOMText::getAttribute() in
/home/httpd/squallstar/hhvm/vendor/scotteh/php-goose/src/Extractors/Cont
entExtractor.php on line 517