Skip to content

Commit

Permalink
Fix for huge XML parsing under <IE10
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmytry Kashcheiev committed Feb 4, 2014
1 parent 63238ab commit b0f8102
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -805,6 +805,11 @@ O$.AjaxObject = function(render) {
document._of_page_is_already_initialized = true;
if (request.responseXML) {
var responseXML = request.responseXML;
//TODO: for huge xml responses some versions of IE can't automaticly parse XML
if ( O$.isExplorer && responseXML && !responseXML.firstChild ){
var parser = new DOMParser();
var responseXML = parser.parseFromString(request.responseText, 'text/xml');
}
this._jsIncludes = responseXML.getElementsByTagName(O$.TAG_AJAX_SCRIPT);
this._updatables = responseXML.getElementsByTagName(O$.TAG_AJAX_UPDATABLE);
this._styles = responseXML.getElementsByTagName(O$.TAG_AJAX_STYLE);
Expand Down

0 comments on commit b0f8102

Please sign in to comment.