MCPcopy Create free account
hub / github.com/JsAaron/jQuery / createSafeFragment

Function createSafeFragment

2.1.1/test/jquery-1.11.1.js:5274–5286  ·  view source on GitHub ↗
( document )

Source from the content-addressed store, hash-verified

5272
5273
5274function createSafeFragment( document ) {
5275 var list = nodeNames.split( "|" ),
5276 safeFrag = document.createDocumentFragment();
5277
5278 if ( safeFrag.createElement ) {
5279 while ( list.length ) {
5280 safeFrag.createElement(
5281 list.pop()
5282 );
5283 }
5284 }
5285 return safeFrag;
5286}
5287
5288var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" +
5289 "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",

Callers 1

jquery-1.11.1.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected