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