The following code typed into Wordpress:
is rendered as:

Notice the

just before the start of the tag. This renders the XHTML invalid. (I have attached the content of this bug report as a text file just in case the spacing is not preserved by Trac and it turns out to be important).