A problem with the Structured Blogging plug-in for WordPress

I’ve found a problem with the Structured Blogging WordPress plug-in, namely that it generates non-valid XHTML.

I haven’t done a lot of background poking at it, but my evidence is that when I attempted to validate my blog against The W3C Markup Validation Service. I came up with 180 errors (most of which are my fault). I eventually worked my way down to a problem with tags within the Test Review post I had posted here previously. I validated and came up with 106 errors. An example:

Line 513, column 26: there is no attribute “alternate-for-id”

<subnode alternate-for-id=”sbentry_1″ xmlns:data-view=”http://www.w3.org/2003/g/

After removing the test review post the number dropped down to about 80 (still mostly my fault).

This isn’t a big deal to me, really; I’ve actually turned my interest in lightly semantic publishing towards microformats recently, in part due to the absence of a MovableType plug-in for Structured Blogging. I want to work with some semantic markup on my other site, and I think I can incorporate microformats relatively easily without a plug-in over there, where as I think that Structured Blogging markup would be substantially harder (an argument against it even if there was an MT plug-in, as far as I’m concerned).

If you want to take a look at my current efforts in microformats, you can take a look at the hCard semantic markup on my new contact page. Eventually, when I get the rest of the site to be XHTML-valid, this page should be able to return a valid vCard from the hCard data using Brian Suda’s X2V utility or bookmarklet (right now it hangs up on some non-valid XHTML – the whole reason I’m trying to come into compliance). If you want to see a rudimentary version, check out Cori’s hCard, which works with Brian’s tool:

my vCard