Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
The createContextualFragment() method enables you to parse a string of HTML into a DocumentFragment using the starting node of a Document Object Model (DOM) Range as the parsing context. Unlike inserting markup into innerHTML, the method can be used to create pre-parsed content to be added or inserted into a document when needed later.
The syntax of the createContextualFragment method is as follows:
oFragment = oRange.createContextualFragment(string);
The parameters are described here:
| Parameter | Description |
|---|---|
oFragment |
A DocumentFragment object. |
oRange |
A DOM Range object. |
string |
A string containing the HTML to parse. |