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