Something funny happens when you submit an XHTML document as XHTML "application / xhtml + xml" as recommended . AJAX libraries, scripts, and styles seem to be falling apart.
The jQuery documentation for individual methods is dotted with comments about the lack of support for XML documents, such as:
"Note: this method does not currently support cross-platform support for customizing data on XML documents, since Internet Explorer does not allow data that must be attached via expando properties."
or more direct
"This method is not available in XML documents."
Mozilla also mentions that "document.cookies does not exist in XML documents" and "document.write is not supported in XML documents." Meanwhile, there is a final recommendation not to "use the inline style or script in XHTML" at all.
This lack of support / functions for XML / XHTML documents (with the MIME type "application / xhtml + xml") in AJAX libraries and browsers is frustrating and alarming.
Where can I find an overview of how the jQuery API works when working with XHTML documents? Or maybe a comparison of the features available on the document object between an HTML document and a properly formatted, rigorous XHTML document?
source share