I am having errors using the Google JsAPI loader when serving the document as "application/xhtml+xml".
The JsAPI script is using "document.write" to add scripts to the page. It should be using "document.createElement".
Doing an online search I found the bug reported elsewhere, but it needs to be reported to the JsAPI team:
What steps will reproduce the problem?
Step 1. Create a web page using Google JSAPI.
Step 2. Serve as `application/xhtml+xml`
Step 3. Silently fail, Javascript scope fatal errors.
What is the expected output? What do you see instead?
I expect it to not die, or for it to warn with a *very* descriptive alert() telling the developer that the MIME type / browser combo isn't supported.