createContextualFragment

The createContextualFragment JS Range returns a DocumentFragment, created from the markup string given.

Syntax

docFragment = range.createContextualFragment(markupString)

Parameters

markupString

A DOMString fragment.

Examples

commonAncestorContainer

comparePoint

intersectsNode

Range

World Wide Web Consortium (W3C)

Home Menu