After some hard work (cough) I’ve updated the following:
- Valid Atom feeds, even for comments
- Feed to get the 20 most recent comments
- Comments form without tables
- and better hints
- Highlighted the comment posted notification
- Ensured no XHTML escapes the system. HTML rocks
- Fixed Last-Modified on comment feeds
- Full content feeds (with summary)
TextPattern rocks.

(Making sure the new comment stuff actually works…)
(Yup!)
Just curious: how did you move to html 4.01 ?
Well aside from modifying the templates, you need to put this code in
publish.php:header("Content-type: text/html; charset=utf-8");
(Basically you add the
$htmlstuff beforeheader())This makes sure no
/>is left in the code. I tried doing it with one RegExp, but it’d match the whitespace and keep it, so I’m using two.The only thing which could cause problems now is TextPattern spewing out namespaced attributes, since this RegExp isn’t looking for those.
Thanks, Mark. That is more or less the same route I was considering. Hadn’t worked on it yet, though.
Why did you move from XHTML to HTML 4.01, Mark?
I never moved, the previous version also was HTML
But for compatibility, XHTML needs to be sent as HTML. Which means browsers see it as invalid HTML, no matter how valid the XHTML is. Furthermore, you can write just as clean code in HTML as in XHTML, so I don’t see a reason to use XHTML. And it’s a point of pride in this day and age that I use HTML