Sha256: b37201ca94af01ee7970dd3ee83dea5278e60e2a1ce01a9688c4778e3eb0c71f

Contents?: true

Size: 667 Bytes

Versions: 401

Compression:

Stored size: 667 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 window.DOMParser();
			xml = tmp.parseFromString( data, "text/xml" );
		} else { // IE
			xml = new window.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

401 entries across 401 versions & 2 rubygems

Version Path
govuk_publishing_components-28.9.2 node_modules/jquery/src/ajax/parseXML.js
govuk_publishing_components-28.9.1 node_modules/jquery/src/ajax/parseXML.js
govuk_publishing_components-28.9.0 node_modules/jquery/src/ajax/parseXML.js
govuk_publishing_components-28.8.1 node_modules/jquery/src/ajax/parseXML.js
govuk_publishing_components-28.8.0 node_modules/jquery/src/ajax/parseXML.js
govuk_publishing_components-28.7.1 node_modules/jquery/src/ajax/parseXML.js
govuk_publishing_components-28.6.0 node_modules/jquery/src/ajax/parseXML.js
govuk_publishing_components-28.5.0 node_modules/jquery/src/ajax/parseXML.js
govuk_publishing_components-28.4.0 node_modules/jquery/src/ajax/parseXML.js
govuk_publishing_components-28.3.0 node_modules/jquery/src/ajax/parseXML.js
govuk_publishing_components-28.2.0 node_modules/jquery/src/ajax/parseXML.js
govuk_publishing_components-28.1.0 node_modules/jquery/src/ajax/parseXML.js
govuk_publishing_components-28.0.0 node_modules/jquery/src/ajax/parseXML.js
govuk_publishing_components-27.20.0 node_modules/jquery/src/ajax/parseXML.js
govuk_publishing_components-27.19.0 node_modules/jquery/src/ajax/parseXML.js
govuk_publishing_components-27.18.0 node_modules/jquery/src/ajax/parseXML.js
govuk_publishing_components-27.17.0 node_modules/jquery/src/ajax/parseXML.js
govuk_publishing_components-27.16.0 node_modules/jquery/src/ajax/parseXML.js
govuk_publishing_components-27.15.0 node_modules/jquery/src/ajax/parseXML.js
govuk_publishing_components-27.14.2 node_modules/jquery/src/ajax/parseXML.js