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

Function disableScript

2.0.3/Dom.js:786–789  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

784 // Replace/restore the type attribute of script elements for safe DOM manipulation
785
786 function disableScript(elem) {
787 elem.type = (elem.getAttribute("type") !== null) + "/" + elem.type;
788 return elem;
789 }
790
791 function restoreScript(elem) {
792 var match = rscriptTypeMasked.exec(elem.type);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected