More Site Updates

posted October 14th, 2005, 7 comments

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.

7 responses

  1. Mark Wubben says:

    (Making sure the new comment stuff actually works…)

  2. Philippe says:

    Just curious: how did you move to html 4.01 ?

  3. Mark Wubben says:

    Well aside from modifying the templates, you need to put this code in publish.php:

    $html = preg_replace("/<(.+)\s\/>/", "", $html);
    $html = preg_replace("/<(.+)\/>/", "", $html);

    header("Content-type: text/html; charset=utf-8");

    (Basically you add the $html stuff before header())

    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.

  4. Philippe says:

    Thanks, Mark. That is more or less the same route I was considering. Hadn’t worked on it yet, though.

  5. Why did you move from XHTML to HTML 4.01, Mark?

  6. Mark Wubben says:

    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 ;-)