MCPcopy
hub / github.com/apache/caldera / disableScript

Function disableScript

static/jquery/jquery.js:5900–5903  ·  view source on GitHub ↗
( elem )

Source from the content-addressed store, hash-verified

5898
5899// Replace/restore the type attribute of script elements for safe DOM manipulation
5900function disableScript( elem ) {
5901 elem.type = ( jQuery.find.attr( elem, "type" ) !== null ) + "/" + elem.type;
5902 return elem;
5903}
5904function restoreScript( elem ) {
5905 var match = rscriptTypeMasked.exec( elem.type );
5906 if ( match ) {

Callers 1

fixCloneNodeIssuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected