can.buildFragment

  • function
 

Make a document fragment.

can.buildFragment(html, node)

Parameters

  1. html {String}

    A string of HTML.

  2. node {DOM | Node}

    A node used to access a document to make the fragment with.

Returns

{DocumentFragment}

A document fragment made from html.

can.buildFragment(html, node) returns a document fragment for the HTML passed.