( elem )
| 6205 | |
| 6206 | // Replace/restore the type attribute of script elements for safe DOM manipulation |
| 6207 | function disableScript( elem ) { |
| 6208 | var attr = elem.getAttributeNode("type"); |
| 6209 | elem.type = ( attr && attr.specified ) + "/" + elem.type; |
| 6210 | return elem; |
| 6211 | } |
| 6212 | function restoreScript( elem ) { |
| 6213 | var match = rscriptTypeMasked.exec( elem.type ); |
| 6214 | if ( match ) { |
no outgoing calls
no test coverage detected