The createContextualFragment JS Range returns a DocumentFragment, created from the markup string given.
Syntax
docFragment = range.createContextualFragment(markupString)
Parameters
markupString
A DOMString fragment.
The createContextualFragment JS Range returns a DocumentFragment, created from the markup string given.
docFragment = range.createContextualFragment(markupString)
A DOMString fragment.