{"json_modified": "2016-09-19T15:05:17.692587", "uuid": "e430a478-3a40-4bfd-a0ca-3963a1d1300c", "title": "DocumentOrShadowRoot.getSelection()", "url": "/en-US/docs/Web/API/DocumentOrShadowRoot/getSelection", "tags": ["API", "Reference", "shadow dom", "DocumentOrShadowRoot", "getSelection()", "Method"], "translations": [], "modified": "2016-09-19T15:05:18", "label": "DocumentOrShadowRoot.getSelection()", "localization_tags": [], "locale": "en-US", "id": 195577, "last_edit": "2016-09-19T15:05:13", "summary": "The getSelection() property of the DocumentOrShadowRoot interface returns a Selection object representing the range of text selected by the user or the current position of the caret.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Returns", "title": "Returns"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_Compatibility", "title": "Browser Compatibility"}], "slug": "Web/API/DocumentOrShadowRoot/getSelection", "review_tags": ["technical", "editorial"]}