MCPcopy Create free account
hub / github.com/JsAaron/jQuery / disableScript

Function disableScript

2.1.1/test/jquery-1.11.1.js:5367–5370  ·  view source on GitHub ↗
( elem )

Source from the content-addressed store, hash-verified

5365
5366// Replace/restore the type attribute of script elements for safe DOM manipulation
5367function disableScript( elem ) {
5368 elem.type = (jQuery.find.attr( elem, "type" ) !== null) + "/" + elem.type;
5369 return elem;
5370}
5371function restoreScript( elem ) {
5372 var match = rscriptTypeMasked.exec( elem.type );
5373 if ( match ) {

Callers 1

fixCloneNodeIssuesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected