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

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic support
Experimental
Chrome Full support 60Edge ? Firefox ? IE ? Opera Full support 47Safari ? WebView Android Full support 60Chrome Android Full support 60Edge Mobile ? Firefox Android ? Opera Android Full support 47Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.

Document Tags and Contributors

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