Sha256: e3dcad19e33479eb173f368ff1bc13a90001ba2393a94bc37723ec841f2c103d

Contents?: true

Size: 650 Bytes

Versions: 6

Compression:

Stored size: 650 Bytes

Contents

define([
	"../core"
], function( jQuery ) {

// Cross-browser xml parsing
jQuery.parseXML = function( data ) {
	var xml, tmp;
	if ( !data || typeof data !== "string" ) {
		return null;
	}
	try {
		if ( window.DOMParser ) { // Standard
			tmp = new DOMParser();
			xml = tmp.parseFromString( data, "text/xml" );
		} else { // IE
			xml = new ActiveXObject( "Microsoft.XMLDOM" );
			xml.async = "false";
			xml.loadXML( data );
		}
	} catch( e ) {
		xml = undefined;
	}
	if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
		jQuery.error( "Invalid XML: " + data );
	}
	return xml;
};

return jQuery.parseXML;

});

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
rails_modular_admin-1.0.0 app/assets/node_modules/jqvmap/node_modules/jquery/src/ajax/parseXML.js
rails_modular_admin-0.4.0 app/assets/node_modules/jqvmap/node_modules/jquery/src/ajax/parseXML.js
simpletool-0.0.3 lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/ajax/parseXML.js
simpletool-0.0.2 lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/ajax/parseXML.js
kanpachi-0.0.7 lib/kanpachi/doc/template/components/jquery/src/ajax/parseXML.js
kanpachi-0.0.6 lib/kanpachi/doc/template/components/jquery/src/ajax/parseXML.js