Sha256: 189aded2d2e9e6b2b963f6f144e4b6c2d56738578e7e8b751c8f49844d932f52

Contents?: true

Size: 480 Bytes

Versions: 157

Compression:

Stored size: 480 Bytes

Contents

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

// Cross-browser xml parsing
jQuery.parseXML = function( data ) {
	var xml;
	if ( !data || typeof data !== "string" ) {
		return null;
	}

	// Support: IE9
	try {
		xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" );
	} catch ( e ) {
		xml = undefined;
	}

	if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) {
		jQuery.error( "Invalid XML: " + data );
	}
	return xml;
};

return jQuery.parseXML;

} );

Version data entries

157 entries across 100 versions & 10 rubygems

Version Path
epuber-0.10.3 lib/epuber/third_party/bower/bower_components/jquery/src/ajax/parseXML.js
epuber-0.10.2 lib/epuber/third_party/bower/bower_components/jquery/src/ajax/parseXML.js
epuber-0.10.1 lib/epuber/third_party/bower/bower_components/jquery/src/ajax/parseXML.js
epuber-0.9.3 lib/epuber/third_party/bower/bower_components/jquery/src/ajax/parseXML.js
epuber-0.9.2 lib/epuber/third_party/bower/bower_components/jquery/src/ajax/parseXML.js
epuber-0.9.1 lib/epuber/third_party/bower/bower_components/jquery/src/ajax/parseXML.js
epuber-0.9.0 lib/epuber/third_party/bower/bower_components/jquery/src/ajax/parseXML.js
epuber-0.8.0 lib/epuber/third_party/bower/bower_components/jquery/src/ajax/parseXML.js
epuber-0.7.4 lib/epuber/third_party/bower/bower_components/jquery/src/ajax/parseXML.js
epuber-0.7.3 lib/epuber/third_party/bower/bower_components/jquery/src/ajax/parseXML.js
epuber-0.7.2 lib/epuber/third_party/bower/bower_components/jquery/src/ajax/parseXML.js
epuber-0.7.1 lib/epuber/third_party/bower/bower_components/jquery/src/ajax/parseXML.js
epuber-0.7.0 lib/epuber/third_party/bower/bower_components/jquery/src/ajax/parseXML.js
jekyll-theme-pirati-7.7.1 _sass/foundation-sites/vendor/jquery/src/ajax/parseXML.js
jekyll-theme-pirati-7.7.1 _sass/foundation-sites/node_modules/jquery/src/ajax/parseXML.js
jekyll-theme-pirati-7.7.0 _sass/foundation-sites/node_modules/jquery/src/ajax/parseXML.js
jekyll-theme-pirati-7.7.0 _sass/foundation-sites/vendor/jquery/src/ajax/parseXML.js
jekyll-theme-pirati-7.6.2 _sass/foundation-sites/vendor/jquery/src/ajax/parseXML.js
jekyll-theme-pirati-7.6.2 _sass/foundation-sites/node_modules/jquery/src/ajax/parseXML.js
jekyll-theme-pirati-7.6.1 _sass/foundation-sites/vendor/jquery/src/ajax/parseXML.js