( elem )
| 59 | |
| 60 | // Replace/restore the type attribute of script elements for safe DOM manipulation |
| 61 | function disableScript( elem ) { |
| 62 | elem.type = (elem.getAttribute("type") !== null) + "/" + elem.type; |
| 63 | return elem; |
| 64 | } |
| 65 | function restoreScript( elem ) { |
| 66 | var match = rscriptTypeMasked.exec( elem.type ); |
| 67 |
nothing calls this directly
no outgoing calls
no test coverage detected