🏠 New in High Baseline Support: Selection
September 7, 2019
The Selection API controls and modifies user text selections within the page.
Source features
api.Window.getSelection[mdn]api.Selection[mdn]api.Selection.anchorNode[mdn]api.Selection.anchorOffset[mdn]api.Selection.collapse[mdn]api.Selection.collapseToEnd[mdn]api.Selection.collapseToStart[mdn]api.Selection.focusNode[mdn]api.Selection.focusOffset[mdn]api.Selection.isCollapsed[mdn]api.Selection.toString[mdn]api.Selection.addRange[mdn]api.Selection.getRangeAt[mdn]api.Selection.rangeCount[mdn]api.Selection.removeAllRanges[mdn]api.Selection.containsNode[mdn]api.Selection.deleteFromDocument[mdn]api.Selection.extend[mdn]api.Selection.selectAllChildren[mdn]api.Document.getSelection[mdn]api.Document.selectionchange_event[mdn]api.Selection.setBaseAndExtent[mdn]api.Selection.empty[mdn]api.Selection.setPosition[mdn]api.Selection.type[mdn]api.Selection.modify[mdn]api.Selection.removeRange[mdn]api.Node.selectstart_event[mdn]api.Selection.direction[mdn]api.HTMLInputElement.selectionchange_event[mdn]api.HTMLTextAreaElement.selectionchange_event[mdn]