Edit File by line
/home/barbar84/www/wp-inclu.../js/jquery
File: jquery.js
handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } );
[5500] Fix | Delete
}
[5501] Fix | Delete
[5502] Fix | Delete
return handlerQueue;
[5503] Fix | Delete
},
[5504] Fix | Delete
[5505] Fix | Delete
addProp: function( name, hook ) {
[5506] Fix | Delete
Object.defineProperty( jQuery.Event.prototype, name, {
[5507] Fix | Delete
enumerable: true,
[5508] Fix | Delete
configurable: true,
[5509] Fix | Delete
[5510] Fix | Delete
get: isFunction( hook ) ?
[5511] Fix | Delete
function() {
[5512] Fix | Delete
if ( this.originalEvent ) {
[5513] Fix | Delete
return hook( this.originalEvent );
[5514] Fix | Delete
}
[5515] Fix | Delete
} :
[5516] Fix | Delete
function() {
[5517] Fix | Delete
if ( this.originalEvent ) {
[5518] Fix | Delete
return this.originalEvent[ name ];
[5519] Fix | Delete
}
[5520] Fix | Delete
},
[5521] Fix | Delete
[5522] Fix | Delete
set: function( value ) {
[5523] Fix | Delete
Object.defineProperty( this, name, {
[5524] Fix | Delete
enumerable: true,
[5525] Fix | Delete
configurable: true,
[5526] Fix | Delete
writable: true,
[5527] Fix | Delete
value: value
[5528] Fix | Delete
} );
[5529] Fix | Delete
}
[5530] Fix | Delete
} );
[5531] Fix | Delete
},
[5532] Fix | Delete
[5533] Fix | Delete
fix: function( originalEvent ) {
[5534] Fix | Delete
return originalEvent[ jQuery.expando ] ?
[5535] Fix | Delete
originalEvent :
[5536] Fix | Delete
new jQuery.Event( originalEvent );
[5537] Fix | Delete
},
[5538] Fix | Delete
[5539] Fix | Delete
special: {
[5540] Fix | Delete
load: {
[5541] Fix | Delete
[5542] Fix | Delete
// Prevent triggered image.load events from bubbling to window.load
[5543] Fix | Delete
noBubble: true
[5544] Fix | Delete
},
[5545] Fix | Delete
click: {
[5546] Fix | Delete
[5547] Fix | Delete
// Utilize native event to ensure correct state for checkable inputs
[5548] Fix | Delete
setup: function( data ) {
[5549] Fix | Delete
[5550] Fix | Delete
// For mutual compressibility with _default, replace `this` access with a local var.
[5551] Fix | Delete
// `|| data` is dead code meant only to preserve the variable through minification.
[5552] Fix | Delete
var el = this || data;
[5553] Fix | Delete
[5554] Fix | Delete
// Claim the first handler
[5555] Fix | Delete
if ( rcheckableType.test( el.type ) &&
[5556] Fix | Delete
el.click && nodeName( el, "input" ) ) {
[5557] Fix | Delete
[5558] Fix | Delete
// dataPriv.set( el, "click", ... )
[5559] Fix | Delete
leverageNative( el, "click", returnTrue );
[5560] Fix | Delete
}
[5561] Fix | Delete
[5562] Fix | Delete
// Return false to allow normal processing in the caller
[5563] Fix | Delete
return false;
[5564] Fix | Delete
},
[5565] Fix | Delete
trigger: function( data ) {
[5566] Fix | Delete
[5567] Fix | Delete
// For mutual compressibility with _default, replace `this` access with a local var.
[5568] Fix | Delete
// `|| data` is dead code meant only to preserve the variable through minification.
[5569] Fix | Delete
var el = this || data;
[5570] Fix | Delete
[5571] Fix | Delete
// Force setup before triggering a click
[5572] Fix | Delete
if ( rcheckableType.test( el.type ) &&
[5573] Fix | Delete
el.click && nodeName( el, "input" ) ) {
[5574] Fix | Delete
[5575] Fix | Delete
leverageNative( el, "click" );
[5576] Fix | Delete
}
[5577] Fix | Delete
[5578] Fix | Delete
// Return non-false to allow normal event-path propagation
[5579] Fix | Delete
return true;
[5580] Fix | Delete
},
[5581] Fix | Delete
[5582] Fix | Delete
// For cross-browser consistency, suppress native .click() on links
[5583] Fix | Delete
// Also prevent it if we're currently inside a leveraged native-event stack
[5584] Fix | Delete
_default: function( event ) {
[5585] Fix | Delete
var target = event.target;
[5586] Fix | Delete
return rcheckableType.test( target.type ) &&
[5587] Fix | Delete
target.click && nodeName( target, "input" ) &&
[5588] Fix | Delete
dataPriv.get( target, "click" ) ||
[5589] Fix | Delete
nodeName( target, "a" );
[5590] Fix | Delete
}
[5591] Fix | Delete
},
[5592] Fix | Delete
[5593] Fix | Delete
beforeunload: {
[5594] Fix | Delete
postDispatch: function( event ) {
[5595] Fix | Delete
[5596] Fix | Delete
// Support: Firefox 20+
[5597] Fix | Delete
// Firefox doesn't alert if the returnValue field is not set.
[5598] Fix | Delete
if ( event.result !== undefined && event.originalEvent ) {
[5599] Fix | Delete
event.originalEvent.returnValue = event.result;
[5600] Fix | Delete
}
[5601] Fix | Delete
}
[5602] Fix | Delete
}
[5603] Fix | Delete
}
[5604] Fix | Delete
};
[5605] Fix | Delete
[5606] Fix | Delete
// Ensure the presence of an event listener that handles manually-triggered
[5607] Fix | Delete
// synthetic events by interrupting progress until reinvoked in response to
[5608] Fix | Delete
// *native* events that it fires directly, ensuring that state changes have
[5609] Fix | Delete
// already occurred before other listeners are invoked.
[5610] Fix | Delete
function leverageNative( el, type, expectSync ) {
[5611] Fix | Delete
[5612] Fix | Delete
// Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add
[5613] Fix | Delete
if ( !expectSync ) {
[5614] Fix | Delete
if ( dataPriv.get( el, type ) === undefined ) {
[5615] Fix | Delete
jQuery.event.add( el, type, returnTrue );
[5616] Fix | Delete
}
[5617] Fix | Delete
return;
[5618] Fix | Delete
}
[5619] Fix | Delete
[5620] Fix | Delete
// Register the controller as a special universal handler for all event namespaces
[5621] Fix | Delete
dataPriv.set( el, type, false );
[5622] Fix | Delete
jQuery.event.add( el, type, {
[5623] Fix | Delete
namespace: false,
[5624] Fix | Delete
handler: function( event ) {
[5625] Fix | Delete
var notAsync, result,
[5626] Fix | Delete
saved = dataPriv.get( this, type );
[5627] Fix | Delete
[5628] Fix | Delete
if ( ( event.isTrigger & 1 ) && this[ type ] ) {
[5629] Fix | Delete
[5630] Fix | Delete
// Interrupt processing of the outer synthetic .trigger()ed event
[5631] Fix | Delete
// Saved data should be false in such cases, but might be a leftover capture object
[5632] Fix | Delete
// from an async native handler (gh-4350)
[5633] Fix | Delete
if ( !saved.length ) {
[5634] Fix | Delete
[5635] Fix | Delete
// Store arguments for use when handling the inner native event
[5636] Fix | Delete
// There will always be at least one argument (an event object), so this array
[5637] Fix | Delete
// will not be confused with a leftover capture object.
[5638] Fix | Delete
saved = slice.call( arguments );
[5639] Fix | Delete
dataPriv.set( this, type, saved );
[5640] Fix | Delete
[5641] Fix | Delete
// Trigger the native event and capture its result
[5642] Fix | Delete
// Support: IE <=9 - 11+
[5643] Fix | Delete
// focus() and blur() are asynchronous
[5644] Fix | Delete
notAsync = expectSync( this, type );
[5645] Fix | Delete
this[ type ]();
[5646] Fix | Delete
result = dataPriv.get( this, type );
[5647] Fix | Delete
if ( saved !== result || notAsync ) {
[5648] Fix | Delete
dataPriv.set( this, type, false );
[5649] Fix | Delete
} else {
[5650] Fix | Delete
result = {};
[5651] Fix | Delete
}
[5652] Fix | Delete
if ( saved !== result ) {
[5653] Fix | Delete
[5654] Fix | Delete
// Cancel the outer synthetic event
[5655] Fix | Delete
event.stopImmediatePropagation();
[5656] Fix | Delete
event.preventDefault();
[5657] Fix | Delete
return result.value;
[5658] Fix | Delete
}
[5659] Fix | Delete
[5660] Fix | Delete
// If this is an inner synthetic event for an event with a bubbling surrogate
[5661] Fix | Delete
// (focus or blur), assume that the surrogate already propagated from triggering the
[5662] Fix | Delete
// native event and prevent that from happening again here.
[5663] Fix | Delete
// This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the
[5664] Fix | Delete
// bubbling surrogate propagates *after* the non-bubbling base), but that seems
[5665] Fix | Delete
// less bad than duplication.
[5666] Fix | Delete
} else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) {
[5667] Fix | Delete
event.stopPropagation();
[5668] Fix | Delete
}
[5669] Fix | Delete
[5670] Fix | Delete
// If this is a native event triggered above, everything is now in order
[5671] Fix | Delete
// Fire an inner synthetic event with the original arguments
[5672] Fix | Delete
} else if ( saved.length ) {
[5673] Fix | Delete
[5674] Fix | Delete
// ...and capture the result
[5675] Fix | Delete
dataPriv.set( this, type, {
[5676] Fix | Delete
value: jQuery.event.trigger(
[5677] Fix | Delete
[5678] Fix | Delete
// Support: IE <=9 - 11+
[5679] Fix | Delete
// Extend with the prototype to reset the above stopImmediatePropagation()
[5680] Fix | Delete
jQuery.extend( saved[ 0 ], jQuery.Event.prototype ),
[5681] Fix | Delete
saved.slice( 1 ),
[5682] Fix | Delete
this
[5683] Fix | Delete
)
[5684] Fix | Delete
} );
[5685] Fix | Delete
[5686] Fix | Delete
// Abort handling of the native event
[5687] Fix | Delete
event.stopImmediatePropagation();
[5688] Fix | Delete
}
[5689] Fix | Delete
}
[5690] Fix | Delete
} );
[5691] Fix | Delete
}
[5692] Fix | Delete
[5693] Fix | Delete
jQuery.removeEvent = function( elem, type, handle ) {
[5694] Fix | Delete
[5695] Fix | Delete
// This "if" is needed for plain objects
[5696] Fix | Delete
if ( elem.removeEventListener ) {
[5697] Fix | Delete
elem.removeEventListener( type, handle );
[5698] Fix | Delete
}
[5699] Fix | Delete
};
[5700] Fix | Delete
[5701] Fix | Delete
jQuery.Event = function( src, props ) {
[5702] Fix | Delete
[5703] Fix | Delete
// Allow instantiation without the 'new' keyword
[5704] Fix | Delete
if ( !( this instanceof jQuery.Event ) ) {
[5705] Fix | Delete
return new jQuery.Event( src, props );
[5706] Fix | Delete
}
[5707] Fix | Delete
[5708] Fix | Delete
// Event object
[5709] Fix | Delete
if ( src && src.type ) {
[5710] Fix | Delete
this.originalEvent = src;
[5711] Fix | Delete
this.type = src.type;
[5712] Fix | Delete
[5713] Fix | Delete
// Events bubbling up the document may have been marked as prevented
[5714] Fix | Delete
// by a handler lower down the tree; reflect the correct value.
[5715] Fix | Delete
this.isDefaultPrevented = src.defaultPrevented ||
[5716] Fix | Delete
src.defaultPrevented === undefined &&
[5717] Fix | Delete
[5718] Fix | Delete
// Support: Android <=2.3 only
[5719] Fix | Delete
src.returnValue === false ?
[5720] Fix | Delete
returnTrue :
[5721] Fix | Delete
returnFalse;
[5722] Fix | Delete
[5723] Fix | Delete
// Create target properties
[5724] Fix | Delete
// Support: Safari <=6 - 7 only
[5725] Fix | Delete
// Target should not be a text node (#504, #13143)
[5726] Fix | Delete
this.target = ( src.target && src.target.nodeType === 3 ) ?
[5727] Fix | Delete
src.target.parentNode :
[5728] Fix | Delete
src.target;
[5729] Fix | Delete
[5730] Fix | Delete
this.currentTarget = src.currentTarget;
[5731] Fix | Delete
this.relatedTarget = src.relatedTarget;
[5732] Fix | Delete
[5733] Fix | Delete
// Event type
[5734] Fix | Delete
} else {
[5735] Fix | Delete
this.type = src;
[5736] Fix | Delete
}
[5737] Fix | Delete
[5738] Fix | Delete
// Put explicitly provided properties onto the event object
[5739] Fix | Delete
if ( props ) {
[5740] Fix | Delete
jQuery.extend( this, props );
[5741] Fix | Delete
}
[5742] Fix | Delete
[5743] Fix | Delete
// Create a timestamp if incoming event doesn't have one
[5744] Fix | Delete
this.timeStamp = src && src.timeStamp || Date.now();
[5745] Fix | Delete
[5746] Fix | Delete
// Mark it as fixed
[5747] Fix | Delete
this[ jQuery.expando ] = true;
[5748] Fix | Delete
};
[5749] Fix | Delete
[5750] Fix | Delete
// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
[5751] Fix | Delete
// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
[5752] Fix | Delete
jQuery.Event.prototype = {
[5753] Fix | Delete
constructor: jQuery.Event,
[5754] Fix | Delete
isDefaultPrevented: returnFalse,
[5755] Fix | Delete
isPropagationStopped: returnFalse,
[5756] Fix | Delete
isImmediatePropagationStopped: returnFalse,
[5757] Fix | Delete
isSimulated: false,
[5758] Fix | Delete
[5759] Fix | Delete
preventDefault: function() {
[5760] Fix | Delete
var e = this.originalEvent;
[5761] Fix | Delete
[5762] Fix | Delete
this.isDefaultPrevented = returnTrue;
[5763] Fix | Delete
[5764] Fix | Delete
if ( e && !this.isSimulated ) {
[5765] Fix | Delete
e.preventDefault();
[5766] Fix | Delete
}
[5767] Fix | Delete
},
[5768] Fix | Delete
stopPropagation: function() {
[5769] Fix | Delete
var e = this.originalEvent;
[5770] Fix | Delete
[5771] Fix | Delete
this.isPropagationStopped = returnTrue;
[5772] Fix | Delete
[5773] Fix | Delete
if ( e && !this.isSimulated ) {
[5774] Fix | Delete
e.stopPropagation();
[5775] Fix | Delete
}
[5776] Fix | Delete
},
[5777] Fix | Delete
stopImmediatePropagation: function() {
[5778] Fix | Delete
var e = this.originalEvent;
[5779] Fix | Delete
[5780] Fix | Delete
this.isImmediatePropagationStopped = returnTrue;
[5781] Fix | Delete
[5782] Fix | Delete
if ( e && !this.isSimulated ) {
[5783] Fix | Delete
e.stopImmediatePropagation();
[5784] Fix | Delete
}
[5785] Fix | Delete
[5786] Fix | Delete
this.stopPropagation();
[5787] Fix | Delete
}
[5788] Fix | Delete
};
[5789] Fix | Delete
[5790] Fix | Delete
// Includes all common event props including KeyEvent and MouseEvent specific props
[5791] Fix | Delete
jQuery.each( {
[5792] Fix | Delete
altKey: true,
[5793] Fix | Delete
bubbles: true,
[5794] Fix | Delete
cancelable: true,
[5795] Fix | Delete
changedTouches: true,
[5796] Fix | Delete
ctrlKey: true,
[5797] Fix | Delete
detail: true,
[5798] Fix | Delete
eventPhase: true,
[5799] Fix | Delete
metaKey: true,
[5800] Fix | Delete
pageX: true,
[5801] Fix | Delete
pageY: true,
[5802] Fix | Delete
shiftKey: true,
[5803] Fix | Delete
view: true,
[5804] Fix | Delete
"char": true,
[5805] Fix | Delete
code: true,
[5806] Fix | Delete
charCode: true,
[5807] Fix | Delete
key: true,
[5808] Fix | Delete
keyCode: true,
[5809] Fix | Delete
button: true,
[5810] Fix | Delete
buttons: true,
[5811] Fix | Delete
clientX: true,
[5812] Fix | Delete
clientY: true,
[5813] Fix | Delete
offsetX: true,
[5814] Fix | Delete
offsetY: true,
[5815] Fix | Delete
pointerId: true,
[5816] Fix | Delete
pointerType: true,
[5817] Fix | Delete
screenX: true,
[5818] Fix | Delete
screenY: true,
[5819] Fix | Delete
targetTouches: true,
[5820] Fix | Delete
toElement: true,
[5821] Fix | Delete
touches: true,
[5822] Fix | Delete
[5823] Fix | Delete
which: function( event ) {
[5824] Fix | Delete
var button = event.button;
[5825] Fix | Delete
[5826] Fix | Delete
// Add which for key events
[5827] Fix | Delete
if ( event.which == null && rkeyEvent.test( event.type ) ) {
[5828] Fix | Delete
return event.charCode != null ? event.charCode : event.keyCode;
[5829] Fix | Delete
}
[5830] Fix | Delete
[5831] Fix | Delete
// Add which for click: 1 === left; 2 === middle; 3 === right
[5832] Fix | Delete
if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) {
[5833] Fix | Delete
if ( button & 1 ) {
[5834] Fix | Delete
return 1;
[5835] Fix | Delete
}
[5836] Fix | Delete
[5837] Fix | Delete
if ( button & 2 ) {
[5838] Fix | Delete
return 3;
[5839] Fix | Delete
}
[5840] Fix | Delete
[5841] Fix | Delete
if ( button & 4 ) {
[5842] Fix | Delete
return 2;
[5843] Fix | Delete
}
[5844] Fix | Delete
[5845] Fix | Delete
return 0;
[5846] Fix | Delete
}
[5847] Fix | Delete
[5848] Fix | Delete
return event.which;
[5849] Fix | Delete
}
[5850] Fix | Delete
}, jQuery.event.addProp );
[5851] Fix | Delete
[5852] Fix | Delete
jQuery.each( { focus: "focusin", blur: "focusout" }, function( type, delegateType ) {
[5853] Fix | Delete
jQuery.event.special[ type ] = {
[5854] Fix | Delete
[5855] Fix | Delete
// Utilize native event if possible so blur/focus sequence is correct
[5856] Fix | Delete
setup: function() {
[5857] Fix | Delete
[5858] Fix | Delete
// Claim the first handler
[5859] Fix | Delete
// dataPriv.set( this, "focus", ... )
[5860] Fix | Delete
// dataPriv.set( this, "blur", ... )
[5861] Fix | Delete
leverageNative( this, type, expectSync );
[5862] Fix | Delete
[5863] Fix | Delete
// Return false to allow normal processing in the caller
[5864] Fix | Delete
return false;
[5865] Fix | Delete
},
[5866] Fix | Delete
trigger: function() {
[5867] Fix | Delete
[5868] Fix | Delete
// Force setup before trigger
[5869] Fix | Delete
leverageNative( this, type );
[5870] Fix | Delete
[5871] Fix | Delete
// Return non-false to allow normal event-path propagation
[5872] Fix | Delete
return true;
[5873] Fix | Delete
},
[5874] Fix | Delete
[5875] Fix | Delete
delegateType: delegateType
[5876] Fix | Delete
};
[5877] Fix | Delete
} );
[5878] Fix | Delete
[5879] Fix | Delete
// Create mouseenter/leave events using mouseover/out and event-time checks
[5880] Fix | Delete
// so that event delegation works in jQuery.
[5881] Fix | Delete
// Do the same for pointerenter/pointerleave and pointerover/pointerout
[5882] Fix | Delete
//
[5883] Fix | Delete
// Support: Safari 7 only
[5884] Fix | Delete
// Safari sends mouseenter too often; see:
[5885] Fix | Delete
// https://bugs.chromium.org/p/chromium/issues/detail?id=470258
[5886] Fix | Delete
// for the description of the bug (it existed in older Chrome versions as well).
[5887] Fix | Delete
jQuery.each( {
[5888] Fix | Delete
mouseenter: "mouseover",
[5889] Fix | Delete
mouseleave: "mouseout",
[5890] Fix | Delete
pointerenter: "pointerover",
[5891] Fix | Delete
pointerleave: "pointerout"
[5892] Fix | Delete
}, function( orig, fix ) {
[5893] Fix | Delete
jQuery.event.special[ orig ] = {
[5894] Fix | Delete
delegateType: fix,
[5895] Fix | Delete
bindType: fix,
[5896] Fix | Delete
[5897] Fix | Delete
handle: function( event ) {
[5898] Fix | Delete
var ret,
[5899] Fix | Delete
target = this,
[5900] Fix | Delete
related = event.relatedTarget,
[5901] Fix | Delete
handleObj = event.handleObj;
[5902] Fix | Delete
[5903] Fix | Delete
// For mouseenter/leave call the handler if related is outside the target.
[5904] Fix | Delete
// NB: No relatedTarget if the mouse left/entered the browser window
[5905] Fix | Delete
if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
[5906] Fix | Delete
event.type = handleObj.origType;
[5907] Fix | Delete
ret = handleObj.handler.apply( this, arguments );
[5908] Fix | Delete
event.type = fix;
[5909] Fix | Delete
}
[5910] Fix | Delete
return ret;
[5911] Fix | Delete
}
[5912] Fix | Delete
};
[5913] Fix | Delete
} );
[5914] Fix | Delete
[5915] Fix | Delete
jQuery.fn.extend( {
[5916] Fix | Delete
[5917] Fix | Delete
on: function( types, selector, data, fn ) {
[5918] Fix | Delete
return on( this, types, selector, data, fn );
[5919] Fix | Delete
},
[5920] Fix | Delete
one: function( types, selector, data, fn ) {
[5921] Fix | Delete
return on( this, types, selector, data, fn, 1 );
[5922] Fix | Delete
},
[5923] Fix | Delete
off: function( types, selector, fn ) {
[5924] Fix | Delete
var handleObj, type;
[5925] Fix | Delete
if ( types && types.preventDefault && types.handleObj ) {
[5926] Fix | Delete
[5927] Fix | Delete
// ( event ) dispatched jQuery.Event
[5928] Fix | Delete
handleObj = types.handleObj;
[5929] Fix | Delete
jQuery( types.delegateTarget ).off(
[5930] Fix | Delete
handleObj.namespace ?
[5931] Fix | Delete
handleObj.origType + "." + handleObj.namespace :
[5932] Fix | Delete
handleObj.origType,
[5933] Fix | Delete
handleObj.selector,
[5934] Fix | Delete
handleObj.handler
[5935] Fix | Delete
);
[5936] Fix | Delete
return this;
[5937] Fix | Delete
}
[5938] Fix | Delete
if ( typeof types === "object" ) {
[5939] Fix | Delete
[5940] Fix | Delete
// ( types-object [, selector] )
[5941] Fix | Delete
for ( type in types ) {
[5942] Fix | Delete
this.off( type, selector, types[ type ] );
[5943] Fix | Delete
}
[5944] Fix | Delete
return this;
[5945] Fix | Delete
}
[5946] Fix | Delete
if ( selector === false || typeof selector === "function" ) {
[5947] Fix | Delete
[5948] Fix | Delete
// ( types [, fn] )
[5949] Fix | Delete
fn = selector;
[5950] Fix | Delete
selector = undefined;
[5951] Fix | Delete
}
[5952] Fix | Delete
if ( fn === false ) {
[5953] Fix | Delete
fn = returnFalse;
[5954] Fix | Delete
}
[5955] Fix | Delete
return this.each( function() {
[5956] Fix | Delete
jQuery.event.remove( this, types, fn, selector );
[5957] Fix | Delete
} );
[5958] Fix | Delete
}
[5959] Fix | Delete
} );
[5960] Fix | Delete
[5961] Fix | Delete
[5962] Fix | Delete
var
[5963] Fix | Delete
[5964] Fix | Delete
// Support: IE <=10 - 11, Edge 12 - 13 only
[5965] Fix | Delete
// In IE/Edge using regex groups here causes severe slowdowns.
[5966] Fix | Delete
// See https://connect.microsoft.com/IE/feedback/details/1736512/
[5967] Fix | Delete
rnoInnerhtml = /<script|<style|<link/i,
[5968] Fix | Delete
[5969] Fix | Delete
// checked="checked" or checked
[5970] Fix | Delete
rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
[5971] Fix | Delete
rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
[5972] Fix | Delete
[5973] Fix | Delete
// Prefer a tbody over its parent table for containing new rows
[5974] Fix | Delete
function manipulationTarget( elem, content ) {
[5975] Fix | Delete
if ( nodeName( elem, "table" ) &&
[5976] Fix | Delete
nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) {
[5977] Fix | Delete
[5978] Fix | Delete
return jQuery( elem ).children( "tbody" )[ 0 ] || elem;
[5979] Fix | Delete
}
[5980] Fix | Delete
[5981] Fix | Delete
return elem;
[5982] Fix | Delete
}
[5983] Fix | Delete
[5984] Fix | Delete
// Replace/restore the type attribute of script elements for safe DOM manipulation
[5985] Fix | Delete
function disableScript( elem ) {
[5986] Fix | Delete
elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type;
[5987] Fix | Delete
return elem;
[5988] Fix | Delete
}
[5989] Fix | Delete
function restoreScript( elem ) {
[5990] Fix | Delete
if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) {
[5991] Fix | Delete
elem.type = elem.type.slice( 5 );
[5992] Fix | Delete
} else {
[5993] Fix | Delete
elem.removeAttribute( "type" );
[5994] Fix | Delete
}
[5995] Fix | Delete
[5996] Fix | Delete
return elem;
[5997] Fix | Delete
}
[5998] Fix | Delete
[5999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function