Web/API/StaticRange/toRange

From Get docs

This is an experimental technologyCheck 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 RangeThe definition of 'toRange()' in that specification. Editor's Draft Initial definition.

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
toRange() Chrome

Full support 60

Edge

Full support 18

Firefox

No support No

IE

No support No

Opera

Full support 47

Safari

No support No

WebView Android

Full support 60

Chrome Android

Full support 60

Firefox Android

No support No

Opera Android

Full support 44

Safari iOS

No support No

Samsung Internet Android

Full support 8.0

Legend

Full support  
Full support
No support  
No support