(elem)
| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected