Installed Firefox 3 and my Ajax app stopped working. Why? Two things.
First, it now adds a
Second, I was slightly sloppily using
First, it now adds a
charset=ISO885-1 to the end of the content-type of the requests made with XMLHttpRequest. My server was expecting the unadorned media-type, so thought the content-type was wrong and rejected the request. I have changed the server.Second, I was slightly sloppily using
document.createElement('head') and the new element to an element whose namespace URI was set to something. This previously caused the new element to inherit the namespace (purely by accident, because of the way the XML was serialized). This has been corrected, and an attribute xmlns="" is added to the element. This breaks my server's attempts to locate the head element. I have changed the JavaScript to use the namespace-savvy createElementNS instead.- Mood:
annoyed
