id summary reporter owner description type status priority milestone component version resolution keywords cc blockedby blocking 7455 "dojo does not load in Opera 9.51 with content type ""application/xhtml+xml""" chucky alex "When the server specifies the content type ""application/xhtml+xml"", dojo does not load in Opera 9.51 (for Linux). When the content type is ""text/html"", it works fine. Consider the following minimal example page: {{{ Dojo Test
dojo =
}}} In Opera 9.51 (for Linux) the output differs based on the content type specified by the server. I put this example here:[[BR]] http://adela.feld.cvut.cz:8080/dojotest/?ct=xhtml [[BR]] http://adela.feld.cvut.cz:8080/dojotest/?ct=html [[BR]] The first URL returns the above document with content type header ""application/xhtml+xml"", the second URL returns it with ""text/html"". This is probably a bug in Opera, but I suppose it could be fixed more promptly in Dojo. In dojo/dojo.js there is this block of code {{{ try{ document.write(""""); }catch(e){ var script = document.createElement(""script""); script.src = tmps[x]; document.getElementsByTagName(""head"")[0].appendChild(script); } }}} If I exchange the contents of the {{{try}}} and {{{catch}}} blocks, it fixes the problem for me (in Opera 9.51, but I don't know if it doesn't break the functionality in other browsers)" defect closed high 1.3 Core 1.2beta fixed tomas.mikula@…