]>
git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/ex-mode/node_modules/space-pen/node_modules/jquery/src/ajax/parseXML.js
9eeb625ff499757018207b9d93ca7e8f9785cccf
3 ], function( jQuery
) {
5 // Cross-browser xml parsing
6 jQuery
.parseXML = function( data
) {
8 if ( !data
|| typeof data
!== "string" ) {
14 tmp
= new DOMParser();
15 xml
= tmp
.parseFromString( data
, "text/xml" );
20 if ( !xml
|| xml
.getElementsByTagName( "parsererror" ).length
) {
21 jQuery
.error( "Invalid XML: " + data
);
26 return jQuery
.parseXML
;