Why isn't WordPress XHTML compliant?
-
I’m just wondering. Time and time again, I’ve seen bad code, especially in the output of built-in functions – lately the automatic embed-function for Flash-based content, for example Youtube videos. How is it possible to manage to make this such a horrible output, when the content manager (WordPress itself) is supposed to be XHTML?
Another one of my pet peeves is the image caption-output. It’s also horrible, in that it usually doesn’t work well if you put it in the middle of a paragraph (div’s inside p’s anyone?) – so I had to rewrite it and made my own. It uses span’s instead, and can be used within or outside a p-tag without problems.
These are minor things, perhaps, but when one strives to make a site validate, it’s annoying. At the same time, WordPress decides to use Aria and other meta-tags which aren’t confirmed yet. No consistency, really. Not to mention the futility of using XHTML to begin with, since it’s more or less dead after W3C decided to scrap XHTML 2.
So, what it all boils down to – is it possible for me to rewrite the horrible, horrible embed-function in my own functions.php? If so, what do I look for – the documentation of the whole thing is also abysmal, unfortunately.
- The topic ‘Why isn't WordPress XHTML compliant?’ is closed to new replies.