AbstractRange.collapsed

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2017.

AbstractRange의 범위가 축소된 read-only 속성은 범위의 시작 위치와 끝 위치가 같을 경우 true를 반환합니다.

문법

js
var isCollpased = range.collapsed;

Value

범위가 축소된 경우 true인 Boolean값을 반환합니다. 축소된 범위는 시작 위치와 종료 위치가 동일하며, 문자 길이가 0인 범위입니다.

명세

Specification
DOM
# ref-for-dom-range-collapsed①

브라우저 호환성

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
collapsed

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Has more compatibility info.