The collapsed
read-only property of the StaticRange
interface returns true
if the range's start position and end position are the same.
The collapsed
read-only property of the StaticRange
interface returns true
if the range's start position and end position are the same.
A boolean value which is true
if the range is collapsed. A collapsed range is one in which the start and end positions are the same, resulting in a zero-character-long range.
Specification |
---|
DOM Standard # ref-for-dom-range-collapsed① |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
collapsed |
60 | 18 | 69 | No | 47 | 10.1 | 60 | 60 | 79 | 44 | 10.3 | 8.0 |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/StaticRange/collapsed