<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebView-swift.class/editableDOMRange(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WebView(im)editableDOMRangeForPoint:"
  },
  "title" : "editableDOMRange(for:)"
}
-->

# editableDOMRange(for:)

Returns the editable DOM object located at a given point.

```
func editableDOMRange(for point: NSPoint) -> DOMRange!
```

## Parameters

`point`

The location of the editable DOM object.

## Return Value

A single range object of the editable DOM object located at `point` in the receiver’s coordinates.

## See Also

[`func setSelectedDOMRange(DOMRange!, affinity: NSSelectionAffinity)`](/documentation/WebKit/WebView-swift.class/setSelectedDOMRange(_:affinity:))

Selects a range of nodes.

[`var selectedDOMRange: DOMRange!`](/documentation/WebKit/WebView-swift.class/selectedDOMRange)

The range of the current selection.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)