Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Your feed is invalid (XML parsing error)

https://muffinman.io/atom.xml



Thank you, I'll take care of it! It seems I broke it with HTML I'm using directly in markdown files.

EDIT: Fixed it, thanks again!


Your <content> elements are malformed, and spec-following feed readers will currently fail to get content, or mangle it: if using <content type="html">, the serialised HTML needs to be encoded as text, which it’s not currently. (Instead, you have a bunch of supposed-to-be-HTML XML tags in the Atom namespace.)

There’s also <content type="xhtml"> which requires an XHTML-namespaced wrapper div and goes full XML, but you should only use that if your tooling will guarantee its XML validity. <https://datatracker.ietf.org/doc/html/rfc4287#section-4.1.3> is the spec for all of this. Reflecting on this and your particular content, there’s a fun technicality that probably theoretically makes type="xhtml" unsuitable for you: you can only use <noscript> in HTML syntax, not XML syntax, because it’s resolved at parse time.


Thanks, subscribed.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: