( elem, tag )
| 6200 | }); |
| 6201 | |
| 6202 | function findOrAppend( elem, tag ) { |
| 6203 | return elem.getElementsByTagName( tag )[0] || elem.appendChild( elem.ownerDocument.createElement( tag ) ); |
| 6204 | } |
| 6205 | |
| 6206 | // Replace/restore the type attribute of script elements for safe DOM manipulation |
| 6207 | function disableScript( elem ) { |