StaticRange.toRange()

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The toRange() property of the StaticRange interface converts the StaticRange object to a Range object.

Syntax

var range = staticRange.toRange()

Parameters

None.

Return value

A new Range object.

Specifications

Specification Status Comment
Static Range
The definition of 'toRange()' in that specification.
Editor's Draft Initial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support60 ? ? ?47 ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support6060 ? ?47 ? ?

Document Tags and Contributors

Contributors to this page: fscholz, jpmedley
Last updated by: fscholz,