( elem )
| 5140 | |
| 5141 | // Replace/restore the type attribute of script elements for safe DOM manipulation |
| 5142 | function disableScript( elem ) { |
| 5143 | elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; |
| 5144 | return elem; |
| 5145 | } |
| 5146 | function restoreScript( elem ) { |
| 5147 | var match = rscriptTypeMasked.exec( elem.type ); |
| 5148 |
nothing calls this directly
no test coverage detected