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

Function disableScript

2.0.3/2.0.3.js:6020–6023  ·  view source on GitHub ↗
( elem )

Source from the content-addressed store, hash-verified

6018
6019// Replace/restore the type attribute of script elements for safe DOM manipulation
6020 function disableScript( elem ) {
6021 elem.type = (elem.getAttribute("type") !== null) + "/" + elem.type;
6022 return elem;
6023 }
6024 function restoreScript( elem ) {
6025 var match = rscriptTypeMasked.exec( elem.type );
6026

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected