files/en-us/web/api/staticrange/index.md
{{APIRef("DOM")}}
The DOM StaticRange interface extends {{domxref("AbstractRange")}} to provide a method to specify a range of content in the DOM whose contents don't update to reflect changes which occur within the DOM tree.
This interface offers the same set of properties and methods as AbstractRange.
AbstractRange and StaticRange are not available from web workers.
{{InheritanceDiagram}}
StaticRange object given options specifying the default values for its properties.Inherits properties from its parent interface, {{domxref("AbstractRange")}}.
A DOM range specifies a span of content in a document, potentially beginning inside one node (or element) and ending inside another one. Unlike a {{domxref("Range")}}, a StaticRange represents a range which is fixed in time; it does not change to try to keep the same content within it as the document changes. If any changes are made to the DOM, the actual data contained within the range specified by a StaticRange may change. This lets the {{Glossary("user agent")}} avoid a lot of work that is unnecessary if the web app or site doesn't need a live-updating range.
{{Specifications}}
{{Compat}}