Forum Moderators: open
Great article! Need-to-know stuff for anyone thinking of migrating to XHTML2.
I especially found this tidbit to be VERY interesting!
Mozilla, in its infinite wisdom, will tell a server that it accepts application/xhtml+xml in the HTTP_ACCEPT header that it sends with every request.
Jordan
browsers aren't actually treating your XHTML as XML. Your validated, correctly DOCTYPE'd, completely standards compliant XHTML markup is being treated as if it were still HTML with a few weird slashes in places they don't belong (like <br /> and <img />).Why? The answer is MIME types...For HTML pages, the MIME type is text/html. For XHTML, the MIME type is supposed to be application/xhtml+xml.
The details indeed ARE important for anyone making the jump.