diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2014-12-27 15:41:37 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2014-12-31 11:43:28 +0100 |
commit | c1f9b1f7b1b77776192048005dcc66dcf3df2bfb (patch) | |
tree | 2b38796e738dd74cb42ecd9bfd151803108386bc /resources/jquery/jquery.xmldom.js | |
parent | b88ab0086858470dd1f644e64cb4e4f62bb2be9b (diff) |
Update to MediaWiki 1.24.1
Diffstat (limited to 'resources/jquery/jquery.xmldom.js')
-rw-r--r-- | resources/jquery/jquery.xmldom.js | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/resources/jquery/jquery.xmldom.js b/resources/jquery/jquery.xmldom.js deleted file mode 100644 index 85d0083d..00000000 --- a/resources/jquery/jquery.xmldom.js +++ /dev/null @@ -1,46 +0,0 @@ -/*! - * jQuery xmlDOM Plugin v1.0 - * http://outwestmedia.com/jquery-plugins/xmldom/ - * - * Released: 2009-04-06 - * Version: 1.0 - * - * Copyright (c) 2009 Jonathan Sharp, Out West Media LLC. - * Dual licensed under the MIT and GPL licenses. - * http://docs.jquery.com/License - */ -(function($) { - // IE DOMParser wrapper - if ( window['DOMParser'] == undefined && window.ActiveXObject ) { - DOMParser = function() { }; - DOMParser.prototype.parseFromString = function( xmlString ) { - var doc = new ActiveXObject('Microsoft.XMLDOM'); - doc.async = 'false'; - doc.loadXML( xmlString ); - return doc; - }; - } - - $.xmlDOM = function(xml, onErrorFn) { - try { - var xmlDoc = ( new DOMParser() ).parseFromString( xml, 'text/xml' ); - if ( $.isXMLDoc( xmlDoc ) ) { - var err = $('parsererror', xmlDoc); - if ( err.length == 1 ) { - throw('Error: ' + $(xmlDoc).text() ); - } - } else { - throw('Unable to parse XML'); - } - } catch( e ) { - var msg = ( e.name == undefined ? e : e.name + ': ' + e.message ); - if ( $.isFunction( onErrorFn ) ) { - onErrorFn( msg ); - } else { - $(document).trigger('xmlParseError', [ msg ]); - } - return $([]); - } - return $( xmlDoc ); - }; -})(jQuery);
\ No newline at end of file |