This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

RangeException

Method of dom/Elementdom/Element

Syntax

var object = object.RangeException(fragment, retVal);

Parameters

fragment

Data-type
any


String containing HTML to be parsed.


retVal

Data-type
any


A document fragment representing the parsed HTML.

Return Value

Returns an object of type DOM NodeDOM Node

Type: HRESULT

This method can return one of these values.

Return code Description
S_OK The operation completed successfully.
W3CException_INVALID_STATE_ERR Throws this exception if the range has been detached.

DocumentFragment

A document fragment representing the parsed HTML.

Notes


Remarks

When inserting elements into a DOM structure, some elements behave according to their context. Using createContextualFragment, you can ensure the parsed HTML will work as expected when inserted or added to the document.

Syntax

Standards information


See also

Related pages

Attributions