MCPcopy Create free account
hub / github.com/idank/explainshell / findOrAppend

Function findOrAppend

explainshell/web/static/js/jquery.js:6202–6204  ·  view source on GitHub ↗
( elem, tag )

Source from the content-addressed store, hash-verified

6200});
6201
6202function 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
6207function disableScript( elem ) {

Callers 1

jquery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected