( elem )
| 2334 | |
| 2335 | // Replace/restore the type attribute of script elements for safe DOM manipulation |
| 2336 | function disableScript( elem ) { |
| 2337 | elem.type = (elem.getAttribute("type") !== null) + "/" + elem.type; |
| 2338 | return elem; |
| 2339 | } |
| 2340 | function restoreScript( elem ) { |
| 2341 | var match = rscriptTypeMasked.exec( elem.type ); |
| 2342 |
nothing calls this directly
no outgoing calls
no test coverage detected