aboutsummaryrefslogtreecommitdiffstats
path: root/resources/lib/jquery.xmldom.js
diff options
context:
space:
mode:
authorTimo Tijhof <krinklemail@gmail.com>2019-03-03 01:22:45 +0000
committerKrinkle <krinklemail@gmail.com>2019-03-03 02:04:51 +0000
commitcdbf91c89fa9038dc63179fa93548d26c4186048 (patch)
tree6c3c781ded1eaccff4fa166c3a134f7278e58af9 /resources/lib/jquery.xmldom.js
parent7b6651ed3204079967055cfc749d2746c57fdfd7 (diff)
downloadmediawikicore-cdbf91c89fa9038dc63179fa93548d26c4186048.tar.gz
mediawikicore-cdbf91c89fa9038dc63179fa93548d26c4186048.zip
resources: Remove 'jquery.xmldom' module
Added in r93908 (2011, aa1bc6f742c0), for use by UploadWizard, but as far as I can tell this never happened, and it's not in use currently anywhere in Wikimedia Git or elsewhere indexed by Codesearch. It's never been updated or otherwise seen maintenance, and seems obsolete with native browser features nowadays. Bug: T202154 Change-Id: I6eccf4f488b6e8d7afa5eb81505895d0729cbfea
Diffstat (limited to 'resources/lib/jquery.xmldom.js')
-rw-r--r--resources/lib/jquery.xmldom.js46
1 files changed, 0 insertions, 46 deletions
diff --git a/resources/lib/jquery.xmldom.js b/resources/lib/jquery.xmldom.js
deleted file mode 100644
index 85d0083d22ed..000000000000
--- a/resources/lib/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