suin/php-rss-writer

Allow enclosure.length of 0

danez opened this issue · 0 comments

danez commented

Would it be possible to allow the length on an enclosure to be added to the xml as 0?

<enclosure length="0" />

Would you accept a PR for that?

Actually it seems length is always required, so the whole if should probably be removed:
https://validator.w3.org/feed/docs/rss2.html#ltenclosuregtSubelementOfLtitemgt