ZF-8411: Consider using 'term' if 'label' is an empty string in Zend_Feed_Reader_Collection_Category::getValues()
Description
Zend_Feed_Reader_Collection_Category::getValues() currently returns an array of 'label' values. This makes sense as the label element (according to the Atom Syndication Format specification) is supposed to be human-readable. However, the label attribute is optional (again, according to the Atom Syndication Format specification) and some feeds instead use the required 'term' attribute. Consider adding the 'term' attribute to the returned array instead of the 'label' attribute if and when the 'label' attribute is an empty string. For reference:
http://atompub.org/rfc4287.html#element.category
As a side note, this new category functionality is working very well!
Comments
Posted by Pádraic Brady (padraic) on 2010-02-06T09:56:07.000+0000
Implement with r20953 - sorry for the longer than usual wait ;)