If I have a span tag like this:
HiSecondLine
And I call this jQuery function:
var ht
You aren't actually using XML, so it makes sense that the serialization doesn't use the XML syntax. See also Ian Hickson's essay about sending XHTML as HTML.