Neil Turner's Blog

Blogging about technology and randomness since 2002

MT validation issue

Ignore this. Read Anil’s comment – it’s been fixed and I really should have checked.
I don’t know whether this has been fixed in Movable Type 3.1 (I’m on the beta test list but haven’t really had chance to play around with it) but the <MTCommentAuthorIdentity> tag outputs invalid HTML. It’s used to display a TypeKey commenter image with a link to that person’s TK profile if that person used TK to post a comment.
The offending code is in the image tag, where the image is given an illegal valign="middle" and isn’t terminated in the proper XML way, thus making it valid in all forms of XHTML. It also includes a border="0" attribute which would make it invalid XHTML 1.0 Strict and above. Consequently, any article where a TK user has commented becomes invalid 🙁 .
incidentally, I’ve made a couple of changes which, fingers crossed, will mean that all comments are posted in Unicode, and so any ‘funny characters’ that are posted shouldn’t ruin the validity of the page. That’s the theory anyway.


  1. Eh, depends on whether you’re talking static or dynamic. Should be lots of fun keeping the two in sync.

  2. Aw, c’mon, Neil. This was fixed right after 3.01D. You’re gonna complain about a bug that was fixed in a beta that you have access to but didn’t test? Seems a bit, well, fussy. Akin to /. folks who comment without reading the article.
    Now, Phil’s right, the bug lags in the PHP output, but he gets a cookie because Phil files bug reports on stuff like this. It’s fixed in development now, but I’m not sure it made the code freeze for 3.1.

  3. Sorry if I seemed short, Neil. I should have put a smiley or two in there. Anyway, thanks for the update and for understanding how software goes. 🙂

  4. I don’t get this thing about Unicode character encoding. I post entries in Finnish, laguage which contains letters with umlauts (that is, those “funny” characters whith two dots on top, like “ä” and “ö”), as well as Italian (where there are characters with accents, like “à”, “á”, “ò”, “ó”, etc.) and I cannot use Unicode. It will not work. To my knowledge Western (ISO-8859-1) is the only encoding that works well. Of course, English works with any encoding. But the reason for using Unicode is still a mystery for me…