Shorthand for creating a DocumentFragment from markup. If the fragment has only one child, the child is returned instead. So this is also a shorthand for creating single elements.
The outerHTML of what to create
outerHTML
const frag1 = apriori.createFragment(` <p>Para 1</p> <p>Para 2</p>`)// <p>Para 1</p><p>Para 2</p> Copy
const frag1 = apriori.createFragment(` <p>Para 1</p> <p>Para 2</p>`)// <p>Para 1</p><p>Para 2</p>
Shorthand for creating a DocumentFragment from markup. If the fragment has only one child, the child is returned instead. So this is also a shorthand for creating single elements.