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

Function createSafeFragment

explainshell/web/static/js/jquery.js:5821–5833  ·  view source on GitHub ↗
( document )

Source from the content-addressed store, hash-verified

5819 });
5820}
5821function createSafeFragment( document ) {
5822 var list = nodeNames.split( "|" ),
5823 safeFrag = document.createDocumentFragment();
5824
5825 if ( safeFrag.createElement ) {
5826 while ( list.length ) {
5827 safeFrag.createElement(
5828 list.pop()
5829 );
5830 }
5831 }
5832 return safeFrag;
5833}
5834
5835var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" +
5836 "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",

Callers 1

jquery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected