MCPcopy Index your code
hub / github.com/JsAaron/jQuery / createSafeFragment

Function createSafeFragment

1.7/manipulation.js:3–15  ·  view source on GitHub ↗
( document )

Source from the content-addressed store, hash-verified

1(function( jQuery ) {
2
3function createSafeFragment( document ) {
4 var list = nodeNames.split( " " ),
5 safeFrag = document.createDocumentFragment();
6
7 if ( safeFrag.createElement ) {
8 while ( list.length ) {
9 safeFrag.createElement(
10 list.pop()
11 );
12 }
13 }
14 return safeFrag;
15}
16
17var nodeNames = "abbr article aside audio canvas datalist details figcaption figure footer " +
18 "header hgroup mark meter nav output progress section summary time video",

Callers 1

manipulation.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected