MCPcopy Create free account
hub / github.com/idank/explainshell / disableScript

Function disableScript

explainshell/web/static/js/jquery.js:6207–6211  ·  view source on GitHub ↗
( elem )

Source from the content-addressed store, hash-verified

6205
6206// Replace/restore the type attribute of script elements for safe DOM manipulation
6207function disableScript( elem ) {
6208 var attr = elem.getAttributeNode("type");
6209 elem.type = ( attr && attr.specified ) + "/" + elem.type;
6210 return elem;
6211}
6212function restoreScript( elem ) {
6213 var match = rscriptTypeMasked.exec( elem.type );
6214 if ( match ) {

Callers 1

fixCloneNodeIssuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected