can.frag
Convert a String, HTMLElement, documentFragment, or contentArray into a documentFragment.
util.frag(item)
Convert a String, HTMLElement, documentFragment, or contentArray into a documentFragment.
Parameters
-
item
{String | HTMLElement | documentFragment | contentArray}
Use
ContentArray's can be used to combine multiple HTMLElements into a single document fragment. For example:
frag
will be a documentFragment with the following elements: