( elem )
| 5985 | |
| 5986 | // Replace/restore the type attribute of script elements for safe DOM manipulation |
| 5987 | function disableScript( elem ) { |
| 5988 | elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; |
| 5989 | return elem; |
| 5990 | } |
| 5991 | function restoreScript( elem ) { |
| 5992 | if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) { |
| 5993 | elem.type = elem.type.slice( 5 ); |
nothing calls this directly
no outgoing calls
no test coverage detected